Fix exception in fetch module when src or dest parameter omitted.
This commit is contained in:
parent
859510ae00
commit
9a234ff9a2
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ class Runner(object):
|
||||||
dest = options.get('dest', None)
|
dest = options.get('dest', None)
|
||||||
if source is None or dest is None:
|
if source is None or dest is None:
|
||||||
results = dict(failed=True, msg="src and dest are required")
|
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
|
# apply templating to source argument
|
||||||
inject = self.setup_cache.get(conn.host,{})
|
inject = self.setup_cache.get(conn.host,{})
|
||||||
|
|
Loading…
Add table
Reference in a new issue