-
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
Use superseded and deprecated configuration from pillar #42602
Use superseded and deprecated configuration from pillar #42602
Conversation
…ied as pillar values.
…s to also test for pillar values.
@garethgreenaway, thanks for your PR! By analyzing the history of the files in this pull request, we identified @isbm, @rallytime and @s0undt3ch to be potential reviewers. |
Go Go Jenkins! |
salt/utils/decorators/__init__.py
Outdated
full_name in pillar.get(self.CFG_USE_DEPRECATED, list()) | ||
|
||
use_superseded = full_name in opts.get(self.CFG_USE_SUPERSEDED, list()) or \ | ||
full_name in pillar.get(self.CFG_USE_SUPERSEDED, list()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garethgreenaway Please do me a favour: remove the \
thing enclosing whole expression in (...)
:-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garethgreenaway 👍 for this and + 💯 and one hug for great unit tests! Great job!
Go Go Jenkins! |
2 similar comments
Go Go Jenkins! |
Go Go Jenkins! |
What does this PR do?
Updating the superseded and deprecated decorators to work when specified as pillar values.
What issues does this PR fix or reference?
#42514
Previous Behavior
Previously the list of functions for use_superseded and use_deprecated were specified in minion configuration.
New Behavior
Specify the list of functions for use_superseded and use_deprecated as pillar values.
Tests written?
No
Please review Salt's Contributing Guide for best practices.