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:
Nicole Thomas 2018-04-30 14:21:54 -04:00 committed by GitHub
commit 8a5d4437bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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