mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
make the compond command check for lists and tuples in the fun
This commit is contained in:
parent
3f9e2536fa
commit
6a8e09b634
@ -185,7 +185,7 @@ class Minion(object):
|
||||
self.functions, self.returners = self.__load_modules()
|
||||
|
||||
if self.opts['multiprocessing']:
|
||||
if isinstance(data['fun'], list):
|
||||
if isinstance(data['fun'], tuple) or isinstance(data['fun'], list):
|
||||
multiprocessing.Process(
|
||||
target=lambda: self._thread_multi_return(data)
|
||||
).start()
|
||||
@ -194,7 +194,7 @@ class Minion(object):
|
||||
target=lambda: self._thread_return(data)
|
||||
).start()
|
||||
else:
|
||||
if isinstance(data['fun'], list):
|
||||
if isinstance(data['fun'], tuple) or isinstance(data['fun'], list):
|
||||
threading.Thread(
|
||||
target=lambda: self._thread_multi_return(data)
|
||||
).start()
|
||||
|
Loading…
Reference in New Issue
Block a user