summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven de Vries <steven@enrise.com>2016-10-17 17:53:07 +0200
committerRene Moser <mail@renemoser.net>2016-10-17 17:57:04 +0200
commit2f6e0cc43c4b6b50719a7357ceb85f9f091e0ec5 (patch)
treedba308c78b5d738ca66c7ec487e920e9e9fdbdea
parentec4eebc92a389d2165f4259f124bdf68a43d28a4 (diff)
downloadansible-modules-core-2f6e0cc43c4b6b50719a7357ceb85f9f091e0ec5.tar.gz
Move job parameter to meet expected requirements (#5151)
closes #5273
-rw-r--r--system/cron.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cron.py b/system/cron.py
index 00ac3709..1ae75b2b 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