From 96ebc5bd603609b10a637d77501a8f09b0169403 Mon Sep 17 00:00:00 2001 From: rwxd Date: Fri, 9 Feb 2024 12:48:15 +0100 Subject: [PATCH] fix: corrected proxy metrics attribute --- powerdns_api_proxy/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdns_api_proxy/config.py b/powerdns_api_proxy/config.py index eb26eea..dc64ce9 100644 --- a/powerdns_api_proxy/config.py +++ b/powerdns_api_proxy/config.py @@ -63,7 +63,7 @@ def dependency_metrics_proxy_enabled( ): try: environment = get_environment_for_token(load_config(), X_API_Key) - if not environment.proxy_metrics: + if not environment.metrics_proxy: raise MetricsNotAllowedException() except ValueError: raise MetricsNotAllowedException()