Add EBS snapshot filter. Closes #525.
This commit is contained in:
parent
0a10b2f738
commit
d82d64b8bd
@ -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
|
||||
|
@ -208,7 +208,7 @@ DESCRIBE_SNAPSHOTS_RESPONSE = """<DescribeSnapshotsResponse xmlns="http://ec2.am
|
||||
<item>
|
||||
<snapshotId>{{ snapshot.id }}</snapshotId>
|
||||
<volumeId>{{ snapshot.volume.id }}</volumeId>
|
||||
<status>completed</status>
|
||||
<status>{{ snapshot.status }}</status>
|
||||
<startTime>{{ snapshot.start_time}}</startTime>
|
||||
<progress>100%</progress>
|
||||
<ownerId>111122223333</ownerId>
|
||||
|
Loading…
Reference in New Issue
Block a user