Merge pull request #42021 from gtmanfred/2016.11

Set concurrent to True when running states with sudo
This commit is contained in:
Mike Place 2017-06-30 16:02:15 -05:00 committed by GitHub
commit 7160697123

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)))