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 a58ed9d53b4 [v2-10-test] suppress the warnings where we check for
sensitive values (#44148) (#44167)
a58ed9d53b4 is described below
commit a58ed9d53b43dcfaf7e95ed17baaa15e0202efcb
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 19 03:35:06 2024 +0000
[v2-10-test] suppress the warnings where we check for sensitive values
(#44148) (#44167)
(cherry picked from commit 9eaeb1c3098e364f940dbbf36e8f7fc72a262eee)
https: //github.com/apache/airflow/pull/44061#issuecomment-2480320259
Co-authored-by: Zach Liu <[email protected]>
---
airflow/configuration.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/airflow/configuration.py b/airflow/configuration.py
index 81eb0fc7253..afb4b5f3808 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -856,7 +856,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.",