diff --git a/VERSION b/VERSION index c4e41f9..c5106e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.3 +4.0.4 diff --git a/src/utils/monitor.py b/src/utils/monitor.py index 6900ed1..79fe517 100644 --- a/src/utils/monitor.py +++ b/src/utils/monitor.py @@ -48,13 +48,15 @@ def check_http_monitor(monitor, gauges): expected_contain = get_or_else(monitor, 'expected_contain', None) username = get_or_else(monitor, 'username', None) password = get_or_else(monitor, 'password', None) - remove_key_safely(monitor, 'password') auth = None duration = None if is_not_empty(username) and is_not_empty(password): auth = HTTPBasicAuth(username, password) + remove_key_safely(monitor, 'username') + remove_key_safely(monitor, 'password') + try: if method == "GET": response = requests.get(monitor['url'], timeout=timeout, auth=auth)