1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixes return data structure (#22830)

The return was being re-written instead of updated so warnings were
lost.  This patch now updates the result instead of replacing it.
This commit is contained in:
Peter Sprygada 2017-03-21 06:41:59 -07:00 committed by Ricardo Carrillo Cruz
parent e7fd38af78
commit d6787632c9

View file

@ -218,11 +218,11 @@ def main():
module.fail_json(msg=msg, failed_conditions=failed_conditions)
result = {
result.update({
'changed': False,
'stdout': responses,
'stdout_lines': list(to_lines(responses))
}
})
module.exit_json(**result)