From 2cf50cb971dc4309a13523b8c1d1a128c4a8f83c Mon Sep 17 00:00:00 2001 From: Stefan Horning Date: Sat, 28 May 2016 01:56:02 +0200 Subject: [PATCH] =?UTF-8?q?Streamlined=20ec2=5Felb=5Ffacts=20module=20retu?= =?UTF-8?q?rn=20values=20with=20naming=20in=20ec2=5Felb=E2=80=A6=20(#2081)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Streamlined ec2_elb_facts module return values with naming in ec2_elb_lb (hosted zones) * Keep the old return values for hosted zone to keep backwards compatibility --- lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py b/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py index 094e28366e..6be3d44697 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py @@ -136,6 +136,8 @@ def get_elb_info(connection,elb): 'dns_name': elb.dns_name, 'canonical_hosted_zone_name': elb.canonical_hosted_zone_name, 'canonical_hosted_zone_name_id': elb.canonical_hosted_zone_name_id, + 'hosted_zone_name': elb.canonical_hosted_zone_name, + 'hosted_zone_id': elb.canonical_hosted_zone_name_id, 'instances': [instance.id for instance in elb.instances], 'listeners': get_elb_listeners(elb.listeners), 'scheme': elb.scheme,