Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Unified Diff: boto/ec2/blockdevicemapping.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « boto/ec2/autoscale/trigger.py ('k') | boto/ec2/cloudwatch/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/ec2/blockdevicemapping.py
diff --git a/boto/ec2/blockdevicemapping.py b/boto/ec2/blockdevicemapping.py
index efbc38b1e44be4724488af04f2b3cdec68bb9096..75be2a43731b5258f852318f79af4184c460faa0 100644
--- a/boto/ec2/blockdevicemapping.py
+++ b/boto/ec2/blockdevicemapping.py
@@ -22,16 +22,25 @@
class BlockDeviceType(object):
- def __init__(self, connection=None):
+ def __init__(self,
+ connection=None,
+ ephemeral_name=None,
+ no_device=False,
+ volume_id=None,
+ snapshot_id=None,
+ status=None,
+ attach_time=None,
+ delete_on_termination=False,
+ size=None):
self.connection = connection
- self.ephemeral_name = None
- self.no_device = False
- self.volume_id = None
- self.snapshot_id = None
- self.status = None
- self.attach_time = None
- self.delete_on_termination = False
- self.size = None
+ self.ephemeral_name = ephemeral_name
+ self.no_device = no_device
+ self.volume_id = volume_id
+ self.snapshot_id = snapshot_id
+ self.status = status
+ self.attach_time = attach_time
+ self.delete_on_termination = delete_on_termination
+ self.size = size
def startElement(self, name, attrs, connection):
pass
@@ -71,7 +80,7 @@ class BlockDeviceMapping(dict):
self.current_value = None
def startElement(self, name, attrs, connection):
- if name == 'ebs':
+ if name == 'ebs' or name == 'virtualName':
self.current_value = BlockDeviceType(self)
return self.current_value
« no previous file with comments | « boto/ec2/autoscale/trigger.py ('k') | boto/ec2/cloudwatch/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698