Fixed:
moto/ec2/models.py:1996:21: E131 continuation line unaligned for hanging indent moto/ec2/models.py:2380:21: E131 continuation line unaligned for hanging indent moto/ec2/models.py:2582:21: E131 continuation line unaligned for hanging indent moto/ec2/responses/network_acls.py:91:1: E303 too many blank lines (4) moto/ec2/responses/network_acls.py:198:4: W292 no newline at end of file
This commit is contained in:
		
							parent
							
								
									b6d9b4f584
								
							
						
					
					
						commit
						405b8af870
					
				| @ -1992,8 +1992,7 @@ class VPCBackend(object): | |||||||
|         route_tables = self.get_all_route_tables(filters={'vpc-id': vpc_id}) |         route_tables = self.get_all_route_tables(filters={'vpc-id': vpc_id}) | ||||||
|         if len(route_tables) > 1: |         if len(route_tables) > 1: | ||||||
|             raise DependencyViolationError( |             raise DependencyViolationError( | ||||||
|                 "The vpc {0} has dependencies and cannot be deleted." |                 "The vpc {0} has dependencies and cannot be deleted.".format(vpc_id) | ||||||
|                     .format(vpc_id) |  | ||||||
|             ) |             ) | ||||||
|         for route_table in route_tables: |         for route_table in route_tables: | ||||||
|             self.delete_route_table(route_table.id) |             self.delete_route_table(route_table.id) | ||||||
| @ -2376,8 +2375,7 @@ class RouteTableBackend(object): | |||||||
|         route_table = self.get_route_table(route_table_id) |         route_table = self.get_route_table(route_table_id) | ||||||
|         if route_table.associations: |         if route_table.associations: | ||||||
|             raise DependencyViolationError( |             raise DependencyViolationError( | ||||||
|                 "The routeTable '{0}' has dependencies and cannot be deleted." |                 "The routeTable '{0}' has dependencies and cannot be deleted.".format(route_table_id) | ||||||
|                     .format(route_table_id) |  | ||||||
|             ) |             ) | ||||||
|         self.route_tables.pop(route_table_id) |         self.route_tables.pop(route_table_id) | ||||||
|         return True |         return True | ||||||
| @ -2578,8 +2576,7 @@ class InternetGatewayBackend(object): | |||||||
|         igw = self.get_internet_gateway(internet_gateway_id) |         igw = self.get_internet_gateway(internet_gateway_id) | ||||||
|         if igw.vpc: |         if igw.vpc: | ||||||
|             raise DependencyViolationError( |             raise DependencyViolationError( | ||||||
|                 "{0} is being utilized by {1}" |                 "{0} is being utilized by {1}".format(internet_gateway_id, igw.vpc.id) | ||||||
|                     .format(internet_gateway_id, igw.vpc.id) |  | ||||||
|             ) |             ) | ||||||
|         self.internet_gateways.pop(internet_gateway_id) |         self.internet_gateways.pop(internet_gateway_id) | ||||||
|         return True |         return True | ||||||
|  | |||||||
| @ -86,8 +86,6 @@ class NetworkACLs(BaseResponse): | |||||||
|         return template.render(association=association) |         return template.render(association=association) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| CREATE_NETWORK_ACL_RESPONSE = """ | CREATE_NETWORK_ACL_RESPONSE = """ | ||||||
| <CreateNetworkAclResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> | <CreateNetworkAclResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> | ||||||
|    <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> |    <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user