diff options
author | James Saryerwinnie <js@jamesls.com> | 2013-04-18 04:14:08 -0700 |
---|---|---|
committer | James Saryerwinnie <js@jamesls.com> | 2013-04-18 04:14:08 -0700 |
commit | 89f4947000587e12042e5b35c4557871b21137b9 (patch) | |
tree | 0606c64058f8402e74b29c621105b74292ff366c /boto/ec2/instance.py | |
parent | b5852b0aa5ac91f462b28ac9decee33d872dec4d (diff) | |
parent | 699d861f453aff8a398f9cd5a8de91ec8e36a8cf (diff) | |
download | boto-2.9.0.tar.gz |
Merge branch 'release-2.9.0'2.9.0
* release-2.9.0: (158 commits)
Bump version to 2.9.0
Added underlying DynamoDB v2 support.
Add redshift to setup.py/docs index
Updated requests to something more modern.
Only use 2 metadata service calls to get credentials
Fix #1146: return response from custom url opener
Fixed missing import.
Add metadata_service_num_attempts config option
Added cleanup for the snapshots created.
Added support for redshift.
Let total attempts by 1 + num_retries
Add more diagnostics to debug logs
Change GS calls to make_request to always convert to utf-8 bytes.
Allow kwargs to be passed through to uplaoder
Remove whitespace, fix long line lengths
Improve VPC and VPN support
Added sleeps to allow amazon time to propogate
Added error handling for out of space during downloads
Initial integration tests for idempotent subscribe
Removed dead code from resumable upload handler
...
Diffstat (limited to 'boto/ec2/instance.py')
-rw-r--r-- | boto/ec2/instance.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boto/ec2/instance.py b/boto/ec2/instance.py index 30311e05..5be701f0 100644 --- a/boto/ec2/instance.py +++ b/boto/ec2/instance.py @@ -188,6 +188,8 @@ class Instance(TaggedEC2Object): :ivar product_codes: A list of product codes associated with this instance. :ivar ami_launch_index: This instances position within it's launch group. :ivar monitored: A boolean indicating whether monitoring is enabled or not. + :ivar monitoring_state: A string value that contains the actual value + of the monitoring element returned by EC2. :ivar spot_instance_request_id: The ID of the spot instance request if this is a spot instance. :ivar subnet_id: The VPC Subnet ID, if running in VPC. @@ -223,6 +225,7 @@ class Instance(TaggedEC2Object): self.product_codes = ProductCodes() self.ami_launch_index = None self.monitored = False + self.monitoring_state = None self.spot_instance_request_id = None self.subnet_id = None self.vpc_id = None @@ -361,6 +364,7 @@ class Instance(TaggedEC2Object): self.ramdisk = value elif name == 'state': if self._in_monitoring_element: + self.monitoring_state = value if value == 'enabled': self.monitored = True self._in_monitoring_element = False |