From 9b0e0fa15ff11c190ad792b0550ead67d656ba23 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 14 Mar 2013 11:27:49 +0100 Subject: [PATCH] Restore force in copy since arguments are no longer clobbered Fixes #2388. --- copy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy b/copy index f33f3910d59..d8d5410b8a7 100644 --- a/copy +++ b/copy @@ -105,8 +105,8 @@ def main(): md5sum_dest = None if os.path.exists(dest): - # if not force: - # module.exit_json(msg="file already exists and force is set (%s)" % force, src=src, dest=dest, changed=False) + if not force: + module.exit_json(msg="file already exists", src=src, dest=dest, changed=False) if (os.path.isdir(dest)): basename = os.path.basename(src) dest = os.path.join(dest, basename)