From 4987c73bb63458f69049958d922b2a05b84c0c6f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 6 Oct 2013 09:54:28 -0400 Subject: [PATCH] Proper check for raw as module options versus raw being in the string. --- lib/ansible/runner/action_plugins/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/action_plugins/copy.py b/lib/ansible/runner/action_plugins/copy.py index fd716451a76..a3f03792201 100644 --- a/lib/ansible/runner/action_plugins/copy.py +++ b/lib/ansible/runner/action_plugins/copy.py @@ -151,7 +151,7 @@ class ActionModule(object): return ReturnData(conn=conn, result=dict(dest=dest, changed=True)) # run the copy module - if 'raw' in module_args: + if raw: # don't send down raw=no module_args.pop('raw') module_args = "%s src=%s original_basename=%s" % (module_args, pipes.quote(tmp_src), pipes.quote(os.path.basename(source))) @@ -168,7 +168,7 @@ class ActionModule(object): return ReturnData(conn=conn, result=dict(dest=dest, changed=False)) tmp_src = tmp + os.path.basename(source) - if 'raw' in module_args: + if raw: # don't send down raw=no module_args.pop('raw') module_args = "%s src=%s" % (module_args, pipes.quote(tmp_src))