Merge pull request #43869 from terminalmage/issue43522

Only join cmd if it's not a string
This commit is contained in:
Nicole Thomas 2017-10-03 12:25:07 -04:00 committed by GitHub
commit 4b882d4272

View file

@ -378,7 +378,8 @@ def _run(cmd,
msg = 'missing salt/utils/win_runas.py'
raise CommandExecutionError(msg)
cmd = ' '.join(cmd)
if isinstance(cmd, (list, tuple)):
cmd = ' '.join(cmd)
return win_runas(cmd, runas, password, cwd)