Fix bug with Gateway Id not being required for Routes

This commit is contained in:
Steve Pulec 2014-03-28 16:17:43 -04:00
parent 3e37aca241
commit 1c10d887c0

View File

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