mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding _cmd_quote to handle cases when the current working directory for cmd.script might have a space in it.
This commit is contained in:
parent
f41adfc913
commit
8dfcf71b08
1 changed files with 3 additions and 0 deletions
|
@ -2146,6 +2146,9 @@ def script(source,
|
|||
if not salt.utils.is_windows():
|
||||
os.chmod(path, 320)
|
||||
os.chown(path, __salt__['file.user_to_uid'](runas), -1)
|
||||
|
||||
path = _cmd_quote(path)
|
||||
|
||||
ret = _run(path + ' ' + str(args) if args else path,
|
||||
cwd=cwd,
|
||||
stdin=stdin,
|
||||
|
|
Loading…
Add table
Reference in a new issue