Commit 588b1290 by Seth Vidal

fix case where destination does not yet exist - no backup can be made

parent 28e9b112
......@@ -75,6 +75,7 @@ def main():
if md5sum_src != md5sum_dest:
try:
if backup:
if os.path.exists(dest):
success, msg = backuplocal(dest)
if not success:
module.fail_jason(msg=msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment