Skip to content

Commit 3daa821

Browse files
committed
suppress the warnings where we check for sensitive values
#44061 (comment)
1 parent f860ec9 commit 3daa821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

airflow/configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ def mask_secrets(self):
777777

778778
for section, key in self.sensitive_config_values:
779779
try:
780-
value = self.get(section, key, suppress_warnings=True)
780+
with self.suppress_future_warnings():
781+
value = self.get(section, key, suppress_warnings=True)
781782
except AirflowConfigException:
782783
log.debug(
783784
"Could not retrieve value from section %s, for key %s. Skipping redaction of this conf.",

0 commit comments

Comments
 (0)