diff --git a/assemble b/assemble index c0c516b117f..479badf676e 100755 --- a/assemble +++ b/assemble @@ -75,7 +75,7 @@ def main(): if pathmd5 != destmd5: if backup and destmd5 is not None: - module.backuplocal(dest) + module.backup_local(dest) shutil.copy(path, dest) changed = True diff --git a/copy b/copy index 9d9a00241bc..b4da56c9797 100755 --- a/copy +++ b/copy @@ -63,7 +63,7 @@ def main(): try: if backup: if os.path.exists(dest): - backup_file = module.backuplocal(dest) + backup_file = module.backup_local(dest) shutil.copyfile(src, dest) except shutil.Error: module.fail_json(msg="failed to copy: %s and %s are the same" % (src, dest)) diff --git a/lineinfile b/lineinfile index 00f298e12bf..7675bb04818 100755 --- a/lineinfile +++ b/lineinfile @@ -70,7 +70,7 @@ def present(module, name, regexp, line, insertafter, backup): if changed: if backup: - module.backuplocal(name) + module.backup_local(name) f = open(name, 'wb') f.writelines(lines) f.close() @@ -93,7 +93,7 @@ def absent(module, name, regexp, backup): changed = len(found) > 0 if changed: if backup: - module.backuplocal(name) + module.backup_local(name) f = open(name, 'wb') f.writelines(lines) f.close()