mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing bug that made cron.file unable to use a file via a Salt URL.
This commit is contained in:
parent
08e8782f76
commit
ddc55d8f9b
1 changed files with 3 additions and 1 deletions
|
@ -606,6 +606,7 @@ def file(name,
|
|||
user,
|
||||
group,
|
||||
mode,
|
||||
[],
|
||||
__env__,
|
||||
context,
|
||||
defaults,
|
||||
|
@ -634,6 +635,7 @@ def file(name,
|
|||
user,
|
||||
group,
|
||||
mode,
|
||||
[],
|
||||
__env__,
|
||||
backup
|
||||
)
|
||||
|
@ -650,7 +652,7 @@ def file(name,
|
|||
if cron_ret['retcode'] == 0:
|
||||
ret['comment'] = 'Crontab for user {0} was updated'.format(user)
|
||||
ret['result'] = True
|
||||
ret['changes'] = ret['changes']['diff']
|
||||
ret['changes'] = ret['changes']
|
||||
else:
|
||||
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