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

reviewable/pr18780/r1
Seth Vidal 12 years ago
parent 05180da537
commit 3cedbb49d5

@ -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)

Loading…
Cancel
Save