From 8287002f14a50d314dabae650b3e440b76a62264 Mon Sep 17 00:00:00 2001 From: Rick Mendes Date: Mon, 1 Aug 2016 15:50:27 -0700 Subject: [PATCH] Fixes #4227: just changing messaging --- cloud/amazon/ec2_elb_lb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/amazon/ec2_elb_lb.py b/cloud/amazon/ec2_elb_lb.py index a6321f73ef3..759b762e44e 100644 --- a/cloud/amazon/ec2_elb_lb.py +++ b/cloud/amazon/ec2_elb_lb.py @@ -38,7 +38,7 @@ options: listeners: description: - List of ports/protocols for this ELB to listen on (see example) - required: true + required: false purge_listeners: description: - Purge existing listeners on ELB that are not found in listeners @@ -1219,7 +1219,7 @@ def main(): argument_spec.update(dict( state={'required': True, 'choices': ['present', 'absent']}, name={'required': True}, - listeners={'required': True, 'type': 'list'}, + listeners={'default': None, 'required': False, 'type': 'list'}, purge_listeners={'default': True, 'required': False, 'type': 'bool'}, instance_ids={'default': None, 'required': False, 'type': 'list'}, purge_instance_ids={'default': False, 'required': False, 'type': 'bool'}, @@ -1278,7 +1278,7 @@ def main(): tags = module.params['tags'] if state == 'present' and not listeners: - module.fail_json(msg="At least one port is required for ELB creation") + module.fail_json(msg="At least one listener is required for ELB creation") if state == 'present' and not (zones or subnets): module.fail_json(msg="At least one availability zone or subnet is required for ELB creation")