From bee04de26ae4928d88e5a76f830685cbe16e05db Mon Sep 17 00:00:00 2001 From: Fred Alger Date: Tue, 5 Jun 2012 11:30:34 -0400 Subject: [PATCH] Fix exception in fetch module when src or dest parameter omitted. --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 7b83619233..123c9e9cad 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -460,7 +460,7 @@ class Runner(object): dest = options.get('dest', None) if source is None or dest is None: results = dict(failed=True, msg="src and dest are required") - return ReturnData(host=conn.host, error=True, results=results) + return ReturnData(host=conn.host, result=results) # apply templating to source argument inject = self.setup_cache.get(conn.host,{})