mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix TypeError
on GeneratorType
instance checking.
This commit is contained in:
parent
b4658e032d
commit
16e1c86130
@ -645,7 +645,7 @@ class Minion(object):
|
||||
args, kwargs = parse_args_and_kwargs(func, data['arg'], data)
|
||||
sys.modules[func.__module__].__context__['retcode'] = 0
|
||||
return_data = func(*args, **kwargs)
|
||||
if isinstance(types.GeneratorType):
|
||||
if isinstance(return_data, types.GeneratorType):
|
||||
ind = 0
|
||||
iret = {}
|
||||
for single in return_data:
|
||||
|
Loading…
Reference in New Issue
Block a user