Set concurrent to True when running states with sudo

Fixes #25842
This commit is contained in:
Daniel Wallace 2017-06-29 11:35:28 -06:00
parent 1416bf70b9
commit 26beb18aa5

View file

@ -73,7 +73,7 @@ class SudoExecutor(ModuleExecutorBase):
'-c', salt.syspaths.CONFIG_DIR,
'--',
data.get('fun')]
if data['fun'] == 'state.sls':
if data['fun'] in ('state.sls', 'state.highstate', 'state.apply'):
kwargs['concurrent'] = True
for arg in args:
self.cmd.append(_cmd_quote(str(arg)))