Names and aliases matching other modules

pull/18777/head
Michael J. Schultz 9 years ago committed by Matt Clay
parent 727bcf9340
commit cb9572277a

@ -22,12 +22,12 @@ description:
version_added: "2.0" version_added: "2.0"
author: "Michael Schultz (github.com/mjschultz)" author: "Michael Schultz (github.com/mjschultz)"
options: options:
name: names:
description: description:
- List of ELB names to gather facts about. Pass this option to gather facts about a set of ELBs, otherwise, all ELBs are returned. - List of ELB names to gather facts about. Pass this option to gather facts about a set of ELBs, otherwise, all ELBs are returned.
required: false required: false
default: null default: null
aliases: ['elb_id'] aliases: ['elb_ids', 'ec2_elbs']
extends_documentation_fragment: aws extends_documentation_fragment: aws
''' '''
@ -48,7 +48,7 @@ EXAMPLES = '''
# Gather facts about a particular ELB # Gather facts about a particular ELB
- action: - action:
module: ec2_elb_facts module: ec2_elb_facts
name: frontend-prod-elb names: frontend-prod-elb
register: elb_facts register: elb_facts
- action: - action:
@ -58,7 +58,7 @@ EXAMPLES = '''
# Gather facts about a set of ELBs # Gather facts about a set of ELBs
- action: - action:
module: ec2_elb_facts module: ec2_elb_facts
name: names:
- frontend-prod-elb - frontend-prod-elb
- backend-prod-elb - backend-prod-elb
register: elb_facts register: elb_facts
@ -148,7 +148,7 @@ def get_elb_info(elb):
def list_elb(connection, module): def list_elb(connection, module):
elb_names = module.params.get("name") elb_names = module.params.get("names")
if not elb_names: if not elb_names:
elb_names = None elb_names = None
@ -168,7 +168,7 @@ def main():
argument_spec = ec2_argument_spec() argument_spec = ec2_argument_spec()
argument_spec.update( argument_spec.update(
dict( dict(
name={'default': None, 'type': 'list'} names={'default': None, 'type': 'list'}
) )
) )

Loading…
Cancel
Save