From b9a8927786478a1709a4f0882a4228d246322127 Mon Sep 17 00:00:00 2001 From: Koos85 Date: Tue, 27 Aug 2024 11:34:10 +0200 Subject: [PATCH] rename option --- README.md | 2 +- lib/check/phpfpm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5188e0f..657dc0d 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ asset: name: "foo.local" check: "phpfpm" config: - status_url: + statusUrl: - "https://foo/some_status" ``` diff --git a/lib/check/phpfpm.py b/lib/check/phpfpm.py index d04a9a5..e096ecd 100644 --- a/lib/check/phpfpm.py +++ b/lib/check/phpfpm.py @@ -11,11 +11,11 @@ async def check_phpfpm( check_config: dict): try: - url = check_config['status_url'] + url = check_config['statusUrl'] except Exception: logging.warning( 'Check did not run; ' - 'status_url is not provided, invalid or empty') + 'statusUrl is not provided, invalid or empty') raise IgnoreCheckException # TODO allow_redirects, verify_ssl config