Fix exception in fetch module when src or dest parameter omitted.

This commit is contained in:
Fred Alger 2012-06-05 11:30:34 -04:00
parent d0c4f4015c
commit bee04de26a

View file

@ -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,{})