diff --git a/changelog/62185.fixed b/changelog/62185.fixed new file mode 100644 index 00000000000..e0329c8bf33 --- /dev/null +++ b/changelog/62185.fixed @@ -0,0 +1 @@ +Restored Salt's DeprecationWarnings diff --git a/salt/__init__.py b/salt/__init__.py index 8b72c9e6f0f..ff7be787fb9 100644 --- a/salt/__init__.py +++ b/salt/__init__.py @@ -70,7 +70,8 @@ warnings.filterwarnings( "", # No deprecation message match DeprecationWarning, # This filter is for DeprecationWarnings r"^(salt|salt\.(.*))$", # Match module(s) 'salt' and 'salt.' - append=True, + # Do *NOT* add append=True here - if we do, salt's DeprecationWarnings will + # never show up ) # Filter the backports package UserWarning about being re-imported