Line 0
Link Here
|
|
|
1 |
--- salt/states/cron.py.orig 2016-06-27 14:04:19 UTC |
2 |
+++ salt/states/cron.py |
3 |
@@ -540,6 +540,7 @@ def file(name, |
4 |
__env__, |
5 |
context, |
6 |
defaults, |
7 |
+ False, # skip_verify |
8 |
**kwargs |
9 |
) |
10 |
except Exception as exc: |
11 |
@@ -573,12 +574,12 @@ def file(name, |
12 |
ret['comment'] = 'Unable to manage file: {0}'.format(exc) |
13 |
return ret |
14 |
|
15 |
+ cron_ret = None |
16 |
if ret['changes']: |
17 |
cron_ret = __salt__['cron.write_cron_file_verbose'](user, cron_path) |
18 |
ret['changes'] = {'diff': ret['changes']['diff']} |
19 |
ret['comment'] = 'Crontab for user {0} was updated'.format(user) |
20 |
elif ret['result']: |
21 |
- cron_ret = None |
22 |
ret['comment'] = 'Crontab for user {0} is in the correct ' \ |
23 |
'state'.format(user) |
24 |
|