Merge remote branch 'upstream/2016.11' into 2016.11_43417_Backport_and_Fixes

This commit is contained in:
Damon Atkins 2017-10-04 04:34:18 +11:00
commit 9467899fc6

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)