From 1cc86167dd968e36e7f52c92c01645c32c825e8c Mon Sep 17 00:00:00 2001 From: Prasad Katti Date: Thu, 30 Nov 2017 05:59:43 -0800 Subject: [PATCH] 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'. --- lib/ansible/modules/cloud/amazon/route53_zone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/route53_zone.py b/lib/ansible/modules/cloud/amazon/route53_zone.py index 728fa8b9110..b9ec92100a1 100644 --- a/lib/ansible/modules/cloud/amazon/route53_zone.py +++ b/lib/ansible/modules/cloud/amazon/route53_zone.py @@ -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()