Fix error in previous PR.

This commit is contained in:
Michael DeHaan 2013-05-05 14:30:48 -04:00
parent d1d3f4b4d2
commit 92c23c85d1

View file

@ -147,7 +147,7 @@ def main():
(rc,out,err) = module.run_command(validate % src)
if rc != 0:
module.fail_json(msg="failed to validate: rc:%s error:%s" % (rc,err))
module.atomic_move(src, dest):
module.atomic_move(src, dest)
except IOError:
module.fail_json(msg="failed to copy: %s to %s" % (src, dest))
changed = True