diff options
author | Steven de Vries <steven@enrise.com> | 2016-10-17 17:53:07 +0200 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2016-10-17 17:53:07 +0200 |
commit | 4900632342b981c6b04e934a148e4109b2666c23 (patch) | |
tree | 1f2d199197e8c7f3f46274e84865a666abd33a49 | |
parent | 500736d3013ba36fcbddcefafc83732d3d1876bf (diff) | |
download | ansible-modules-core-4900632342b981c6b04e934a148e4109b2666c23.tar.gz |
Move job parameter to meet expected requirements (#5151)
closes #5273
-rw-r--r-- | system/cron.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cron.py b/system/cron.py index bfc2f2d2..654ca410 100644 --- a/system/cron.py +++ b/system/cron.py @@ -645,10 +645,10 @@ def main(): crontab.remove_env(name) changed = True else: - job = crontab.get_cron_job(minute, hour, day, month, weekday, job, special_time, disabled) old_job = crontab.find_job(name) if do_install: + job = crontab.get_cron_job(minute, hour, day, month, weekday, job, special_time, disabled) if len(old_job) == 0: crontab.add_job(name, job) changed = True |