diff options
Diffstat (limited to 'boto/ec2/spotdatafeedsubscription.py')
-rw-r--r-- | boto/ec2/spotdatafeedsubscription.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/boto/ec2/spotdatafeedsubscription.py b/boto/ec2/spotdatafeedsubscription.py index 9b820a3e..1b30a99f 100644 --- a/boto/ec2/spotdatafeedsubscription.py +++ b/boto/ec2/spotdatafeedsubscription.py @@ -26,7 +26,7 @@ from boto.ec2.ec2object import EC2Object from boto.ec2.spotinstancerequest import SpotInstanceStateFault class SpotDatafeedSubscription(EC2Object): - + def __init__(self, connection=None, owner_id=None, bucket=None, prefix=None, state=None,fault=None): EC2Object.__init__(self, connection) @@ -45,7 +45,7 @@ class SpotDatafeedSubscription(EC2Object): return self.fault else: return None - + def endElement(self, name, value, connection): if name == 'ownerId': self.owner_id = value @@ -58,6 +58,8 @@ class SpotDatafeedSubscription(EC2Object): else: setattr(self, name, value) - def delete(self): - return self.connection.delete_spot_datafeed_subscription() + def delete(self, dry_run=False): + return self.connection.delete_spot_datafeed_subscription( + dry_run=dry_run + ) |