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

fix the return value of route53_zone (#33403)

All the values currently documented as return values are returned inside a 'result' key.
So if you registered the output of the task as 'output', then you would need to do 'output.result.zone_id' instead of 'output.zone_id'.
This commit fixes that so that you can do 'output.zone_id'.
This commit is contained in:
Prasad Katti 2017-11-30 05:59:43 -08:00 committed by Ryan Brown
parent 04877f4969
commit 1cc86167dd

View file

@ -350,7 +350,7 @@ def main():
elif state == 'absent':
changed, result = delete(conn, module, matching_zones=zones)
module.exit_json(changed=changed, result=result)
module.exit_json(changed=changed, result=result, **result)
if __name__ == '__main__':
main()