Fixing bug that made cron.file unable to use a file via a Salt URL.

This commit is contained in:
Gareth J. Greenaway 2018-04-07 12:17:17 -07:00
parent 08e8782f76
commit ddc55d8f9b
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -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'])