From d6cc007380e750344b5f5dcd3b00425a42e6d4d6 Mon Sep 17 00:00:00 2001 From: Rick Mendes Date: Sat, 30 Jul 2016 15:11:45 -0700 Subject: [PATCH] Fixes #4227 --- lib/ansible/modules/cloud/amazon/ec2_elb_lb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py b/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py index 2f9acfa7e9..006b94aa42 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py +++ b/lib/ansible/modules/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: false + required: true purge_listeners: description: - Purge existing listeners on ELB that are not found in listeners @@ -1224,7 +1224,7 @@ def main(): argument_spec.update(dict( state={'required': True, 'choices': ['present', 'absent']}, name={'required': True}, - listeners={'default': None, 'required': False, 'type': 'list'}, + listeners={'required': True, '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'},