mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47270 from meaksh/2017.7-fix-retcode-on-schedule-utils
Fix minion scheduler to return 'retcode' from executed functions
This commit is contained in:
commit
8a5d4437bb
1 changed files with 1 additions and 0 deletions
|
@ -889,6 +889,7 @@ class Schedule(object):
|
|||
for global_key, value in six.iteritems(func_globals):
|
||||
self.functions[mod_name].__globals__[global_key] = value
|
||||
|
||||
self.functions.pack['__context__']['retcode'] = 0
|
||||
ret['return'] = self.functions[func](*args, **kwargs)
|
||||
|
||||
# runners do not provide retcode
|
||||
|
|
Loading…
Add table
Reference in a new issue