[BUG] saltclass tops state list is incomplete for nested classes #58969
Labels
Bug
broken, incorrect, or confusing behavior
Pending-Discussion
The issue or pull request needs more discussion before it can be closed or merged
Milestone
Description
When using saltclass with multiple levels of classes, all of which define states, the resulting state list only comes back with states for the top level classes. Looking at the code, it appears that it is ignoring the state lists returned from the recursive calls of
expand_classes_in_order
Setup
Expected behavior
Running state.show_top with the above classes, one would expect a state list of
[1,2,3,4,5,6,7,8]
, but what comes back instead is[1,2,7]
Versions Report
salt --versions-report
Additional context
Without knowing exactly what was intended, this is my rough guess as to what might have been meant to happen:
The text was updated successfully, but these errors were encountered: