diff options
| author | Seth Vidal <skvidal@fedoraproject.org> | 2013-04-16 18:25:56 +0000 |
|---|---|---|
| committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-04-16 18:25:56 +0000 |
| commit | e1b8f54a7f64144f6b8a4abf928ed1ef0d5cd806 (patch) | |
| tree | 9dba943839077a6ea730c8f43680a46879586d69 /library | |
| parent | 38983bf892d6819f67ed11770d3ffc44659576f9 (diff) | |
| download | ansible-e1b8f54a7f64144f6b8a4abf928ed1ef0d5cd806.tar.gz ansible-e1b8f54a7f64144f6b8a4abf928ed1ef0d5cd806.tar.xz ansible-e1b8f54a7f64144f6b8a4abf928ed1ef0d5cd806.zip | |
try including the shutil - maybe it has the issue
Diffstat (limited to 'library')
| -rwxr-xr-x | library/cron | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cron b/library/cron index d32a4d691..3bb0521f9 100755 --- a/library/cron +++ b/library/cron @@ -147,15 +147,15 @@ 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" % (cron_file,os.getpid(),time.time()) - shutil.copyfile(tmpfile, dest_tmp) try: + shutil.copyfile(tmpfile, dest_tmp) module.atomic_replace(dest_tmp, cron_file) except (OSError, IOError), e: - return (0, "", str(e)) + return (1, "", str(e)) except: - return (0, "", str(e)) + return (1, "", str(e)) else: - return (1, "", "") + return (0, "", "") else: |
