-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] salt.utils.versions.warn_until doesn't seem to be warn-ing #62185
Labels
Comments
@s0undt3ch any ideas here? |
I can confirm this. Here is a simple reproducer: #59917 (comment) |
Just ran a git bisect. Not sure why, but fe075aa is apparently where it started going sideways 😕 |
Hrm... that may be because I didn't have distro installed. Let's try that again... |
24d503a looks like it |
In particular, this line 24d503a#diff-2038ca798ab1bff9599cdfa754560f33bc4a589e9239c442e859032b3e7e6287R41 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
DeprecationWarning
is being filtered somewhere...Inserting a block like this into a function doesn't actually throw the warning (I tested by inserting it into
test.ping
):but this block does throw the warning properly:
The
salt.utils.versions.warn_until
function defaults to using theDeprecationWarning
class. Changing thecategory
argument to another class, such asWarning
orFutureWarning
, allows the warning to be shown as expected.There are filters in place in a couple of places in the code, but I couldn't narrow down where it was being suppressed.
This is problematic, because users aren't being shown deprecation warnings as expected... so removal of functionality may come as a surprise.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: