From 3daa821f2dcdbdaa86808d64bf283c1fe79864e3 Mon Sep 17 00:00:00 2001 From: zachliu Date: Mon, 18 Nov 2024 10:17:12 -0500 Subject: [PATCH] suppress the warnings where we check for sensitive values https://github.com/apache/airflow/pull/44061#issuecomment-2480320259 --- airflow/configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/configuration.py b/airflow/configuration.py index cd218657133a2..bc808d6bfc28e 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -777,7 +777,8 @@ def mask_secrets(self): for section, key in self.sensitive_config_values: try: - value = self.get(section, key, suppress_warnings=True) + with self.suppress_future_warnings(): + value = self.get(section, key, suppress_warnings=True) except AirflowConfigException: log.debug( "Could not retrieve value from section %s, for key %s. Skipping redaction of this conf.",