Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add state.show_states call. #44475
What does this PR do?
list individual sls state's to be applied.
What issues does this PR fix or reference?
Commits signed with GPG?
How this can be used
One can get the list of these low state's to be applied and then query how many of them would perform a change on a node. For example, this is today script (https://github.com/salt-formulas/salt-formulas-scripts/blob/master/salt-state-apply-trend.sh) I am using.
(as up to now we don't have any statistics of this kind available (feel free to correct me)).
I dont have any idea how to write tests properly for that, as what it does it's 1:1 code from low_sls call (if I remember + additional 5 lines of loop in order to pick sls. That code is supposed to be already tested by mentioned method.
The only test I can imagine is that it returns a type list. As the in/out vlaues will be in the test call anyway modified to match. If you really need tests, can you post an update with some example that I could work on.
Worth if you point out why it;s failing..