This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9eaeb1c3098 suppress the warnings where we check for sensitive values 
(#44148)
9eaeb1c3098 is described below

commit 9eaeb1c3098e364f940dbbf36e8f7fc72a262eee
Author: Zach Liu <[email protected]>
AuthorDate: Mon Nov 18 22:33:04 2024 -0500

    suppress the warnings where we check for sensitive values (#44148)
    
    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 cd218657133..bc808d6bfc2 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -777,7 +777,8 @@ class AirflowConfigParser(ConfigParser):
 
         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.",

Reply via email to