Replace 'result' with 'ansible_facts' for returned dict variable

pull/41656/head
Jose Delarosa 7 years ago
parent 1f12337cb5
commit d093d1be02

@ -229,7 +229,7 @@ def main():
# Return data back or fail with proper message # Return data back or fail with proper message
if result['ret'] is True: if result['ret'] is True:
del result['ret'] del result['ret']
module.exit_json(result=result) module.exit_json(ansible_facts=result)
else: else:
module.fail_json(msg=result['msg']) module.fail_json(msg=result['msg'])

Loading…
Cancel
Save