From 3835b1812acb75f13ccf9cd0f5e2c7cdd17ce563 Mon Sep 17 00:00:00 2001 From: zachliu Date: Mon, 18 Nov 2024 10:11:58 -0500 Subject: [PATCH] suppress the warnings in this particular case where we check for sensitive values https://github.com/apache/airflow/pull/44061#issuecomment-2480393886 --- airflow/configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/configuration.py b/airflow/configuration.py index 81eb0fc7253445..afb4b5f3808b6f 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -856,7 +856,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.",