Fix bug with Gateway Id not being required for Routes
This commit is contained in:
parent
3e37aca241
commit
1c10d887c0
@ -794,7 +794,7 @@ class Route(object):
|
|||||||
def create_from_cloudformation_json(cls, resource_name, cloudformation_json):
|
def create_from_cloudformation_json(cls, resource_name, cloudformation_json):
|
||||||
properties = cloudformation_json['Properties']
|
properties = cloudformation_json['Properties']
|
||||||
|
|
||||||
gateway_id = properties['GatewayId']
|
gateway_id = properties.get('GatewayId')
|
||||||
route_table_id = properties['RouteTableId']
|
route_table_id = properties['RouteTableId']
|
||||||
route_table = ec2_backend.create_route(
|
route_table = ec2_backend.create_route(
|
||||||
route_table_id=route_table_id,
|
route_table_id=route_table_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user