Fix result
This commit is contained in:
parent
a7966f0a41
commit
eac675ea75
@ -52,8 +52,7 @@ class ActionModule(ActionBase):
|
|||||||
self.depth = module_args.get('depth', 0)
|
self.depth = module_args.get('depth', 0)
|
||||||
|
|
||||||
results = {
|
results = {
|
||||||
"sites": [],
|
"sites": []
|
||||||
|
|
||||||
}
|
}
|
||||||
failed = False
|
failed = False
|
||||||
|
|
||||||
@ -89,7 +88,9 @@ class ActionModule(ActionBase):
|
|||||||
if not "target_var" in module_args:
|
if not "target_var" in module_args:
|
||||||
result['ansible_facts'] = results
|
result['ansible_facts'] = results
|
||||||
else:
|
else:
|
||||||
result['ansible_facts'][module_args['target_var']] = results
|
result['ansible_facts'] = {
|
||||||
|
module_args['target_var']: results
|
||||||
|
}
|
||||||
result['_ansible_no_log'] = not self.show_content
|
result['_ansible_no_log'] = not self.show_content
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user