mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Initialize __context__ retcode for functions handled via schedule util module
This commit is contained in:
parent
10e30515dc
commit
b6da600fff
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