Restore force in copy since arguments are no longer clobbered

Fixes #2388.
This commit is contained in:
Daniel Hokka Zakrisson 2013-03-14 11:27:49 +01:00
parent 0ca35d04a8
commit 9b0e0fa15f

4
copy
View file

@ -105,8 +105,8 @@ def main():
md5sum_dest = None md5sum_dest = None
if os.path.exists(dest): if os.path.exists(dest):
# if not force: if not force:
# module.exit_json(msg="file already exists and force is set (%s)" % force, src=src, dest=dest, changed=False) module.exit_json(msg="file already exists", src=src, dest=dest, changed=False)
if (os.path.isdir(dest)): if (os.path.isdir(dest)):
basename = os.path.basename(src) basename = os.path.basename(src)
dest = os.path.join(dest, basename) dest = os.path.join(dest, basename)