Fix for #7368 breaks peering connections. Unreak them.

reviewable/pr18780/r1
Paul Armstrong 11 years ago
parent 8e6a60dfd6
commit 7b40939231

@ -422,8 +422,10 @@ def create_vpc(module, vpc_conn):
'(igw) route, but you have no Internet Gateway'
)
route_kwargs['gateway_id'] = igw.id
else:
elif route['gw'].startswith('i-'):
route_kwargs['instance_id'] = route['gw']
else:
route_kwargs['gateway_id'] = route['gw']
vpc_conn.create_route(new_rt.id, route['dest'], **route_kwargs)
# Associate with subnets

Loading…
Cancel
Save