From 054fe53b436cfdc8df1931b6963c71bd1bc8fdce Mon Sep 17 00:00:00 2001 From: Steven de Vries Date: Mon, 17 Oct 2016 17:53:07 +0200 Subject: [PATCH] Move job parameter to meet expected requirements (#5151) closes #5273 --- lib/ansible/modules/system/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index 245a7245868..50fda32f4d4 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/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