From 4510f2e5a10d302dfd31ba434819541513796b40 Mon Sep 17 00:00:00 2001 From: Mike Dixon Date: Tue, 2 Sep 2014 19:16:39 -0700 Subject: [PATCH] Fix #8666 for real Commit 311ec543af7605bdfcd30d74ea5f77448609b995 ("If not specified, do not modify subnet/route_tables for ec2 VPCs") mostly fixed the problem, except that it left defaults for subnets and route_tables so that not specifying them still deleted them. --- library/cloud/ec2_vpc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cloud/ec2_vpc b/library/cloud/ec2_vpc index 679de8a057..2f9840281c 100644 --- a/library/cloud/ec2_vpc +++ b/library/cloud/ec2_vpc @@ -575,11 +575,11 @@ def main(): wait_timeout = dict(default=300), dns_support = dict(type='bool', default=True), dns_hostnames = dict(type='bool', default=True), - subnets = dict(type='list', default=[]), + subnets = dict(type='list'), vpc_id = dict(), internet_gateway = dict(type='bool', default=False), resource_tags = dict(type='dict', required=True), - route_tables = dict(type='list', default=[]), + route_tables = dict(type='list'), state = dict(choices=['present', 'absent'], default='present'), ) )