Multi-command salt calls return highest exit #47544
What does this PR do?
Running a multiple command salt call will currently make salt think that
This checks if the
What issues does this PR fix or reference?
The salt summary would say that any multi-module salt call had failed, because it did not know how to parse returns with a dictionary
Salt now handles dictionary
Commits signed with GPG?
The text was updated successfully, but these errors were encountered:
Running a multiple command salt call will currently make salt think that all of the minions returned with a failed state regardless of the return values of the modules actually run. Right now it just returns the value of `retcode` in the return dictionary if the return value is a dictionary. This checks if the `retcode` value is a dictionary itself, and then returns the maximum return code that we recieved. This means that we will continue to fail if the jobs did fail, but will return a zero if all the jobs did so.