Add return of the called functions to the changes slot

This commit is contained in:
Bo Maryniuk 2017-03-09 14:25:05 +01:00
parent ffa7035558
commit 929e3bf19b

View File

@ -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)