diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 7ad52d71c..23083b327 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -1158,7 +1158,6 @@ class SecurityGroup(TaggedEC2Resource): def delete(self, region_name): ''' Not exposed as part of the ELB API - used for CloudFormation. ''' - backend = ec2_backends[region_name] self.ec2_backend.delete_security_group(group_id=self.id) @property @@ -1570,6 +1569,7 @@ class Snapshot(TaggedEC2Resource): self.start_time = utc_date_and_time() self.create_volume_permission_groups = set() self.ec2_backend = ec2_backend + self.status = 'completed' def get_filter_value(self, filter_name): @@ -2023,6 +2023,7 @@ class SubnetBackend(object): raise InvalidParameterValueError(map_public_ip) subnet.map_public_ip_on_launch = map_public_ip + class SubnetRouteTableAssociation(object): def __init__(self, route_table_id, subnet_id): self.route_table_id = route_table_id diff --git a/moto/ec2/responses/elastic_block_store.py b/moto/ec2/responses/elastic_block_store.py index 453b7261b..2324cb354 100644 --- a/moto/ec2/responses/elastic_block_store.py +++ b/moto/ec2/responses/elastic_block_store.py @@ -208,7 +208,7 @@ DESCRIBE_SNAPSHOTS_RESPONSE = """