From 17e6be671b746c927fa09fb1207ae2c76f6d4a2d Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sun, 16 Nov 2014 13:48:39 -0500 Subject: [PATCH] ec2 module: add instance_id alias Create an alias named instance_id for the instance_ids parameter. --- lib/ansible/modules/cloud/amazon/ec2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index 1079143955..7286cb0bc0 100755 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -179,7 +179,7 @@ options: - "list of instance ids, currently used for states: absent, running, stopped" required: false default: null - aliases: [] + aliases: ['instance_id'] source_dest_check: version_added: "1.6" description: @@ -1183,7 +1183,7 @@ def main(): assign_public_ip = dict(type='bool', default=False), private_ip = dict(), instance_profile_name = dict(), - instance_ids = dict(type='list'), + instance_ids = dict(type='list', alias='instance_id'), source_dest_check = dict(type='bool', default=True), state = dict(default='present'), exact_count = dict(type='int', default=None),