mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix for #7368 breaks peering connections. Unreak them.
This commit is contained in:
@@ -422,8 +422,10 @@ def create_vpc(module, vpc_conn):
|
|||||||
'(igw) route, but you have no Internet Gateway'
|
'(igw) route, but you have no Internet Gateway'
|
||||||
)
|
)
|
||||||
route_kwargs['gateway_id'] = igw.id
|
route_kwargs['gateway_id'] = igw.id
|
||||||
else:
|
elif route['gw'].startswith('i-'):
|
||||||
route_kwargs['instance_id'] = route['gw']
|
route_kwargs['instance_id'] = route['gw']
|
||||||
|
else:
|
||||||
|
route_kwargs['gateway_id'] = route['gw']
|
||||||
vpc_conn.create_route(new_rt.id, route['dest'], **route_kwargs)
|
vpc_conn.create_route(new_rt.id, route['dest'], **route_kwargs)
|
||||||
|
|
||||||
# Associate with subnets
|
# Associate with subnets
|
||||||
|
|||||||
Reference in New Issue
Block a user