summaryrefslogtreecommitdiff
path: root/lib/ansible/runner/action_plugins/fetch.py
diff options
context:
space:
mode:
authorDaniel Hokka Zakrisson <daniel@hozac.com>2012-09-21 10:42:27 +0200
committerDaniel Hokka Zakrisson <daniel@hozac.com>2012-09-23 23:38:26 +0200
commit34f7e6ffa010fe40992c1694647cfdbc9156106c (patch)
treeb1c3fbc724742db951a7ccef65fe351bdf62eddf /lib/ansible/runner/action_plugins/fetch.py
parent3939f7a81240d0956564e99b286583bb59393659 (diff)
downloadansible-34f7e6ffa010fe40992c1694647cfdbc9156106c.tar.gz
Pass module arguments as argument instead of keeping it in runner
Diffstat (limited to 'lib/ansible/runner/action_plugins/fetch.py')
-rw-r--r--lib/ansible/runner/action_plugins/fetch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/runner/action_plugins/fetch.py b/lib/ansible/runner/action_plugins/fetch.py
index b0c8161451..48de294959 100644
--- a/lib/ansible/runner/action_plugins/fetch.py
+++ b/lib/ansible/runner/action_plugins/fetch.py
@@ -32,11 +32,11 @@ class ActionModule(object):
def __init__(self, runner):
self.runner = runner
- def run(self, conn, tmp, module_name, inject):
+ def run(self, conn, tmp, module_name, module_args, inject):
''' handler for fetch operations '''
# load up options
- options = utils.parse_kv(self.runner.module_args)
+ options = utils.parse_kv(module_args)
source = options.get('src', None)
dest = options.get('dest', None)
if source is None or dest is None: