summaryrefslogtreecommitdiff
path: root/boto/ec2/spotinstancerequest.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/ec2/spotinstancerequest.py')
-rw-r--r--boto/ec2/spotinstancerequest.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/boto/ec2/spotinstancerequest.py b/boto/ec2/spotinstancerequest.py
index 54fba1d6..c5b8bc95 100644
--- a/boto/ec2/spotinstancerequest.py
+++ b/boto/ec2/spotinstancerequest.py
@@ -184,5 +184,8 @@ class SpotInstanceRequest(TaggedEC2Object):
else:
setattr(self, name, value)
- def cancel(self):
- self.connection.cancel_spot_instance_requests([self.id])
+ def cancel(self, dry_run=False):
+ self.connection.cancel_spot_instance_requests(
+ [self.id],
+ dry_run=dry_run
+ )