From 93ab6e8e6f6db36e93cbb1f3c19a29591e23c49f Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 16 Apr 2013 18:11:58 +0000 Subject: [PATCH] don't refer to vars which don't exist --- library/cron | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cron b/library/cron index 514afbefa3..2a71a2a063 100755 --- a/library/cron +++ b/library/cron @@ -146,9 +146,9 @@ def get_jobs_file(module, user, tmpfile, cron_file): def install_jobs(module, user, tmpfile, cron_file): if cron_file: - dest_tmp = "%s.%s.%s.tmp" % (dest,os.getpid(),time.time()) + dest_tmp = "%s.%s.%s.tmp" % (cron_file,os.getpid(),time.time()) shutil.copyfile(tmpfile, dest_tmp) - module.atomic_replace(dest_tmp, dest) + module.atomic_replace(dest_tmp, cron_file) else: cmd = "crontab %s %s" % (user, tmpfile)