From 99af8bdb79d90534400bebd1ca547dd75fcc6338 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 29 Feb 2016 19:50:27 +0000 Subject: [PATCH] Convert VPCZoneIdentifier list in template resource to csv Although the boto docs say to use a csv, CloudFormation templates use a list instead: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#aws-properties-as-group-prop Without this change, templates specifying VPCZoneIdentifier will break as the identifier will be the repr of the list. Signed-off-by: Scott Greene --- moto/autoscaling/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py index 812323781..d7f0db620 100644 --- a/moto/autoscaling/models.py +++ b/moto/autoscaling/models.py @@ -156,7 +156,7 @@ class FakeAutoScalingGroup(object): max_size=properties.get("MaxSize"), min_size=properties.get("MinSize"), launch_config_name=launch_config_name, - vpc_zone_identifier=properties.get("VPCZoneIdentifier"), + vpc_zone_identifier=(','.join(properties.get("VPCZoneIdentifier", [])) or None), default_cooldown=properties.get("Cooldown"), health_check_period=properties.get("HealthCheckGracePeriod"), health_check_type=properties.get("HealthCheckType"),