From 34f7e6ffa010fe40992c1694647cfdbc9156106c Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 21 Sep 2012 10:42:27 +0200 Subject: Pass module arguments as argument instead of keeping it in runner --- lib/ansible/runner/action_plugins/fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ansible/runner/action_plugins/fetch.py') 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: -- cgit v1.2.1