-
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
[3006.x] fix(saltclass): don't lose nested classes and states in recursion #66918
Conversation
We'll need a changelog and some tests for this. |
Ok, the changelog is quite easy, I'll need to document for testing. |
0af0ff8
to
2d967b6
Compare
316a5b6
to
45eab43
Compare
Thanks @twangboy, should I rebase the branch over 3006.x from time to time until it get merge? |
A pillars dict in a minion node definition was not overridding correctly the same dict in classes. * salt/utils/saltclass.py (expanded_dict_from_minion): do not pass a reference to minion dict or it will be overridden by classes during expansion. Fixes: saltstack#63933
45eab43
to
6476468
Compare
I reword my commit message to fix typo as you did in the title 👍 |
What does this PR do?
This PR keep all the classes and states from recursive expansion of saltclass classes.
What issues does this PR fix or reference?
Fixes #58969
Fixes #63933
Previous Behavior
Only states from top level classes were kept.
New Behavior
All states from all classes are used, in the correct order.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.
See GitHub's page on GPG signing for more information about signing commits with GPG.