Initialize __context__ retcode for functions handled via schedule util module

This commit is contained in:
Pablo Suárez Hernández 2018-04-24 13:50:49 +01:00
parent 10e30515dc
commit b6da600fff
No known key found for this signature in database
GPG key ID: A9683F02B512C911

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