Fix error in previous PR.
This commit is contained in:
parent
cf26a425fa
commit
26c6c61d96
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ def main():
|
||||||
(rc,out,err) = module.run_command(validate % src)
|
(rc,out,err) = module.run_command(validate % src)
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
module.fail_json(msg="failed to validate: rc:%s error:%s" % (rc,err))
|
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:
|
except IOError:
|
||||||
module.fail_json(msg="failed to copy: %s to %s" % (src, dest))
|
module.fail_json(msg="failed to copy: %s to %s" % (src, dest))
|
||||||
changed = True
|
changed = True
|
||||||
|
|
Loading…
Reference in a new issue