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

potiuk pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new 854b8de1ac3 Suppress warnings when masking sensitive confs (#43335) 
(#43337)
854b8de1ac3 is described below

commit 854b8de1ac3b52203439f8deb4acf37c7d5c3321
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Oct 24 02:30:06 2024 +0200

    Suppress warnings when masking sensitive confs (#43335) (#43337)
    
    This is to prevent issues such as 
https://github.com/apache/airflow/pull/43334
    
    (cherry picked from commit 0a9c3c007bf1672398a63bb9c97b82ec48f60afc)
    
    ---------
    
    Co-authored-by: Amogh Desai <[email protected]>
    Co-authored-by: Kaxil Naik <[email protected]>
---
 airflow/configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/configuration.py b/airflow/configuration.py
index 22e2c6abf70..81eb0fc7253 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -856,7 +856,7 @@ class AirflowConfigParser(ConfigParser):
 
         for section, key in self.sensitive_config_values:
             try:
-                value = self.get(section, key)
+                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