From 6aa0cd445774ee925cfa376625f6b969ba131ee3 Mon Sep 17 00:00:00 2001 From: Neil Saunders Date: Thu, 25 Feb 2016 14:18:02 +0000 Subject: [PATCH] Fix for issue #3109: Executing ec2_group with rules fails with "Invalid rule parameter '['" --- cloud/amazon/ec2_group.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cloud/amazon/ec2_group.py b/cloud/amazon/ec2_group.py index 6ec9086db05..6a696eacc6c 100644 --- a/cloud/amazon/ec2_group.py +++ b/cloud/amazon/ec2_group.py @@ -233,12 +233,12 @@ def get_target_from_rule(module, ec2, rule, name, group, groups, vpc_id): def main(): argument_spec = ec2_argument_spec() argument_spec.update(dict( - name=dict(required=True), - description=dict(required=True), - vpc_id=dict(), - rules=dict(), - rules_egress=dict(), - state = dict(default='present', choices=['present', 'absent']), + name=dict(type='str', required=True), + description=dict(type='str', required=True), + vpc_id=dict(type='str'), + rules=dict(type='list'), + rules_egress=dict(type='list'), + state = dict(default='present', type='str', choices=['present', 'absent']), purge_rules=dict(default=True, required=False, type='bool'), purge_rules_egress=dict(default=True, required=False, type='bool'),