mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
59a07cae68
commit
1e335297e2
1 changed files with 1 additions and 1 deletions
|
@ -524,13 +524,13 @@ def file(name,
|
|||
return ret
|
||||
|
||||
if ret['changes']:
|
||||
cron_ret = __salt__['cron.write_cron_file_verbose'](user, cron_path)
|
||||
ret['changes'] = {'diff': ret['changes']['diff']}
|
||||
ret['comment'] = 'Crontab for user {0} was updated'.format(user)
|
||||
elif ret['result']:
|
||||
ret['comment'] = 'Crontab for user {0} is in the correct ' \
|
||||
'state'.format(user)
|
||||
|
||||
cron_ret = __salt__['cron.write_cron_file_verbose'](user, cron_path)
|
||||
if cron_ret['retcode']:
|
||||
ret['comment'] = 'Unable to update user {0} crontab {1}.' \
|
||||
' Error: {2}'.format(user, cron_path, cron_ret['stderr'])
|
||||
|
|
Loading…
Add table
Reference in a new issue