From a43aaaecd0bfac38a2909e6a13aa27e7824e7bfc Mon Sep 17 00:00:00 2001 From: nextus <R@nextus.me> Date: Wed, 13 Nov 2013 23:58:37 +0400 Subject: [PATCH] Fix: absent state removing whole cron.d file instead of specific job --- library/system/cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/cron b/library/system/cron index f877fc27214..b04fe23ea58 100644 --- a/library/system/cron +++ b/library/system/cron @@ -466,7 +466,7 @@ def main(): (backuph, backup_file) = tempfile.mkstemp(prefix='crontab') crontab.write(backup_file) - if crontab.cron_file and not do_install: + if crontab.cron_file and not name and not do_install: changed = crontab.remove_job_file() module.exit_json(changed=changed,cron_file=cron_file,state=state)