Skip to content

Commit

Permalink
[v2-10-test] suppress the warnings where we check for sensitive values (
Browse files Browse the repository at this point in the history
#44148) (#44167)

(cherry picked from commit 9eaeb1c)


https: //github.com//pull/44061#issuecomment-2480320259

Co-authored-by: Zach Liu <zachliu@users.noreply.github.com>
  • Loading branch information
2 people authored and utkarsharma2 committed Dec 9, 2024
1 parent bef7a71 commit 86e0da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 86e0da8

Please sign in to comment.