From 990bbbbd462f29a811a97718d679e1167c5982c0 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 17 May 2013 11:24:28 +0200 Subject: [PATCH] Fix SecurityGroups for AWS::AutoScaling::LaunchConfiguration Change-Id: Ie3b0663093c9c4bae14cf3311a65ff92715af8c9 Fixes: bug #1180878 --- heat/engine/resources/autoscaling.py | 2 +- heat/tests/test_instance_group.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/heat/engine/resources/autoscaling.py b/heat/engine/resources/autoscaling.py index 81a0f027..f26093ce 100644 --- a/heat/engine/resources/autoscaling.py +++ b/heat/engine/resources/autoscaling.py @@ -396,7 +396,7 @@ class LaunchConfiguration(resource.Resource): 'Required': True}, 'KeyName': {'Type': 'String'}, 'UserData': {'Type': 'String'}, - 'SecurityGroups': {'Type': 'String'}, + 'SecurityGroups': {'Type': 'List'}, 'KernelId': {'Type': 'String', 'Implemented': False}, 'RamDiskId': {'Type': 'String', diff --git a/heat/tests/test_instance_group.py b/heat/tests/test_instance_group.py index 5b238719..5039fd4f 100644 --- a/heat/tests/test_instance_group.py +++ b/heat/tests/test_instance_group.py @@ -47,6 +47,7 @@ ig_template = ''' "ImageId" : "foo", "InstanceType" : "m1.large", "KeyName" : "test", + "SecurityGroups" : [ "sg-1" ], "UserData" : "jsconfig data" } } -- 2.45.2