mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add return of the called functions to the changes slot
This commit is contained in:
parent
ffa7035558
commit
929e3bf19b
@ -258,6 +258,7 @@ def run(**kwargs):
|
||||
else:
|
||||
success.append('{0}: {1}'.format(
|
||||
func, func_ret.get('comment', 'Success') if isinstance(func_ret, dict) else func_ret))
|
||||
ret['changes'][func] = func_ret
|
||||
except (SaltInvocationError, TypeError) as ex:
|
||||
failures.append("'{0}' failed: {1}".format(func, ex))
|
||||
ret['comment'] = ', '.join(failures + success)
|
||||
|
Loading…
Reference in New Issue
Block a user