mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
migrate to new shellisms for rsync
This commit is contained in:
parent
cbfe89c748
commit
e310a4484e
@ -91,7 +91,7 @@ def rsync(src,
|
||||
)
|
||||
|
||||
try:
|
||||
ret = __salt__['cmd.run_all'](cmd)
|
||||
ret = __salt__['cmd.run_all'](cmd, python_shell=False)
|
||||
except (IOError, OSError) as exc:
|
||||
raise CommandExecutionError(exc.strerror)
|
||||
|
||||
@ -142,7 +142,7 @@ def config(confile='/etc/rsyncd.conf'):
|
||||
)
|
||||
|
||||
try:
|
||||
ret = __salt__['cmd.run_all'](cmd)
|
||||
ret = __salt__['cmd.run_all'](cmd, python_shell=False)
|
||||
except (IOError, OSError) as exc:
|
||||
raise CommandExecutionError(exc.strerror)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user