diff options
author | Mitch Garnaat <mitch@garnaat.com> | 2012-05-15 18:59:46 -0700 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2012-05-15 18:59:46 -0700 |
commit | 1aa1133e8502ea6c95e49ac34681569df5ace46b (patch) | |
tree | a25397b20d7d409131ccfbfce5d4dca23d7e52a4 /boto/ec2/spotinstancerequest.py | |
parent | 911f42b97fdccbc55e160ec323df0cad6fe64c6b (diff) | |
parent | 6588ea270bfc9e0bb4d17263b72ee8b5255545c5 (diff) | |
download | boto-2.4.0.tar.gz |
Merge branch 'release-2.4.0'2.4.0
Diffstat (limited to 'boto/ec2/spotinstancerequest.py')
-rw-r--r-- | boto/ec2/spotinstancerequest.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/boto/ec2/spotinstancerequest.py b/boto/ec2/spotinstancerequest.py index 06acb0f5..a3562ac3 100644 --- a/boto/ec2/spotinstancerequest.py +++ b/boto/ec2/spotinstancerequest.py @@ -15,7 +15,7 @@ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. @@ -27,6 +27,7 @@ Represents an EC2 Spot Instance Request from boto.ec2.ec2object import TaggedEC2Object from boto.ec2.launchspecification import LaunchSpecification + class SpotInstanceStateFault(object): def __init__(self, code=None, message=None): @@ -46,8 +47,9 @@ class SpotInstanceStateFault(object): self.message = value setattr(self, name, value) + class SpotInstanceRequest(TaggedEC2Object): - + def __init__(self, connection=None): TaggedEC2Object.__init__(self, connection) self.id = None @@ -58,6 +60,7 @@ class SpotInstanceRequest(TaggedEC2Object): self.valid_from = None self.valid_until = None self.launch_group = None + self.launched_availability_zone = None self.product_description = None self.availability_zone_group = None self.create_time = None @@ -89,8 +92,6 @@ class SpotInstanceRequest(TaggedEC2Object): self.type = value elif name == 'state': self.state = value - elif name == 'productDescription': - self.product_description = value elif name == 'validFrom': self.valid_from = value elif name == 'validUntil': @@ -99,15 +100,16 @@ class SpotInstanceRequest(TaggedEC2Object): self.launch_group = value elif name == 'availabilityZoneGroup': self.availability_zone_group = value - elif name == 'createTime': - self.create_time = value + elif name == 'launchedAvailabilityZone': + self.launched_availability_zone = value elif name == 'instanceId': self.instance_id = value + elif name == 'createTime': + self.create_time = value + elif name == 'productDescription': + self.product_description = value else: setattr(self, name, value) def cancel(self): self.connection.cancel_spot_instance_requests([self.id]) - - - |