summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-01-13 09:40:15 -0800
committerJames Cammarata <jimi@sngx.net>2015-02-17 13:40:14 -0600
commitec2a9cbd11ef1878595ff169cfc8235dea2ba0fb (patch)
tree2fc1aa147d94529022ceecb2a48fcc54ef1f25a4
parentd5ff09659f71ecab5eb1225a0ea86275fe54fedd (diff)
downloadansible-ec2a9cbd11ef1878595ff169cfc8235dea2ba0fb.tar.gz
Do not send stat all the parameters that unarchive received
Fixes #546
-rw-r--r--lib/ansible/runner/action_plugins/unarchive.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ansible/runner/action_plugins/unarchive.py b/lib/ansible/runner/action_plugins/unarchive.py
index cfcaf454bd..5286c1e6f5 100644
--- a/lib/ansible/runner/action_plugins/unarchive.py
+++ b/lib/ansible/runner/action_plugins/unarchive.py
@@ -59,9 +59,10 @@ class ActionModule(object):
# do not run the command if the line contains creates=filename
# and the filename already exists. This allows idempotence
# of command executions.
- module_args_tmp = "path=%s" % creates
+ module_args_tmp = ""
+ complex_args_tmp = dict(path=creates, get_md5=False, get_checksum=False)
module_return = self.runner._execute_module(conn, tmp, 'stat', module_args_tmp, inject=inject,
- complex_args=complex_args, persist_files=True)
+ complex_args=complex_args_tmp, persist_files=True)
stat = module_return.result.get('stat', None)
if stat and stat.get('exists', False):
return ReturnData(