From cb9572277a9e5ba9a6bea92d12a4ad9329c67491 Mon Sep 17 00:00:00 2001 From: "Michael J. Schultz" Date: Sun, 23 Aug 2015 21:11:47 -0500 Subject: [PATCH] Names and aliases matching other modules --- .../modules/extras/cloud/amazon/ec2_elb_facts.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 b586842a485..fc8fdb878c2 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py @@ -22,12 +22,12 @@ description: version_added: "2.0" author: "Michael Schultz (github.com/mjschultz)" options: - name: + names: 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. required: false default: null - aliases: ['elb_id'] + aliases: ['elb_ids', 'ec2_elbs'] extends_documentation_fragment: aws ''' @@ -48,7 +48,7 @@ EXAMPLES = ''' # Gather facts about a particular ELB - action: module: ec2_elb_facts - name: frontend-prod-elb + names: frontend-prod-elb register: elb_facts - action: @@ -58,7 +58,7 @@ EXAMPLES = ''' # Gather facts about a set of ELBs - action: module: ec2_elb_facts - name: + names: - frontend-prod-elb - backend-prod-elb register: elb_facts @@ -148,7 +148,7 @@ def get_elb_info(elb): def list_elb(connection, module): - elb_names = module.params.get("name") + elb_names = module.params.get("names") if not elb_names: elb_names = None @@ -168,7 +168,7 @@ def main(): argument_spec = ec2_argument_spec() argument_spec.update( dict( - name={'default': None, 'type': 'list'} + names={'default': None, 'type': 'list'} ) )