mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes #4227: just changing messaging
This commit is contained in:
parent
eae75cf727
commit
be33879152
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,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
|
||||
|
@ -1223,7 +1223,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'},
|
||||
|
@ -1282,7 +1282,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")
|
||||
|
|
Loading…
Reference in a new issue