mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Regression to ignore retcodes on crontab calls
This commit is contained in:
parent
422441505d
commit
f8beab71dd
1 changed files with 2 additions and 0 deletions
|
@ -282,12 +282,14 @@ def raw_cron(user):
|
|||
# Preserve line endings
|
||||
lines = sdecode(__salt__['cmd.run_stdout'](cmd,
|
||||
runas=user,
|
||||
ignore_retcode=True,
|
||||
rstrip=False,
|
||||
python_shell=False)).splitlines(True)
|
||||
else:
|
||||
cmd = 'crontab -u {0} -l'.format(user)
|
||||
# Preserve line endings
|
||||
lines = sdecode(__salt__['cmd.run_stdout'](cmd,
|
||||
ignore_retcode=True,
|
||||
rstrip=False,
|
||||
python_shell=False)).splitlines(True)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue