diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 6631706f1..9b6b6920d 100755 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -1992,8 +1992,7 @@ class VPCBackend(object): route_tables = self.get_all_route_tables(filters={'vpc-id': vpc_id}) if len(route_tables) > 1: raise DependencyViolationError( - "The vpc {0} has dependencies and cannot be deleted." - .format(vpc_id) + "The vpc {0} has dependencies and cannot be deleted.".format(vpc_id) ) for route_table in route_tables: self.delete_route_table(route_table.id) @@ -2376,8 +2375,7 @@ class RouteTableBackend(object): route_table = self.get_route_table(route_table_id) if route_table.associations: raise DependencyViolationError( - "The routeTable '{0}' has dependencies and cannot be deleted." - .format(route_table_id) + "The routeTable '{0}' has dependencies and cannot be deleted.".format(route_table_id) ) self.route_tables.pop(route_table_id) return True @@ -2578,8 +2576,7 @@ class InternetGatewayBackend(object): igw = self.get_internet_gateway(internet_gateway_id) if igw.vpc: raise DependencyViolationError( - "{0} is being utilized by {1}" - .format(internet_gateway_id, igw.vpc.id) + "{0} is being utilized by {1}".format(internet_gateway_id, igw.vpc.id) ) self.internet_gateways.pop(internet_gateway_id) return True diff --git a/moto/ec2/responses/network_acls.py b/moto/ec2/responses/network_acls.py index 6c89d72d1..a244583e2 100644 --- a/moto/ec2/responses/network_acls.py +++ b/moto/ec2/responses/network_acls.py @@ -86,8 +86,6 @@ class NetworkACLs(BaseResponse): return template.render(association=association) - - CREATE_NETWORK_ACL_RESPONSE = """ 59dbff89-35bd-4eac-99ed-be587EXAMPLE @@ -195,4 +193,4 @@ DELETE_NETWORK_ACL_ENTRY_RESPONSE = """ 59dbff89-35bd-4eac-99ed-be587EXAMPLE true -""" \ No newline at end of file +"""