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 <scott.greene@getbraintree.com>
This commit is contained in:
Andrew Garrett 2016-02-29 19:50:27 +00:00 committed by Scott Greene
parent da98052b18
commit 99af8bdb79

View File

@ -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"),