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

Unified Diff: third_party/boto/boto/ec2/blockdevicemapping.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month 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 | « third_party/boto/boto/ec2/autoscale/policy.py ('k') | third_party/boto/boto/ec2/cloudwatch/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/ec2/blockdevicemapping.py
===================================================================
--- third_party/boto/boto/ec2/blockdevicemapping.py (revision 33376)
+++ third_party/boto/boto/ec2/blockdevicemapping.py (working copy)
@@ -55,25 +55,26 @@
pass
def endElement(self, name, value, connection):
+ lname = name.lower()
if name == 'volumeId':
self.volume_id = value
- elif name == 'virtualName':
+ elif lname == 'virtualname':
self.ephemeral_name = value
- elif name == 'NoDevice':
+ elif lname == 'nodevice':
self.no_device = (value == 'true')
- elif name == 'snapshotId':
+ elif lname == 'snapshotid':
self.snapshot_id = value
- elif name == 'volumeSize':
+ elif lname == 'volumesize':
self.size = int(value)
- elif name == 'status':
+ elif lname == 'status':
self.status = value
- elif name == 'attachTime':
+ elif lname == 'attachtime':
self.attach_time = value
- elif name == 'deleteOnTermination':
+ elif lname == 'deleteontermination':
self.delete_on_termination = (value == 'true')
- elif name == 'volumeType':
+ elif lname == 'volumetype':
self.volume_type = value
- elif name == 'iops':
+ elif lname == 'iops':
self.iops = int(value)
else:
setattr(self, name, value)
@@ -105,14 +106,16 @@
self.current_value = None
def startElement(self, name, attrs, connection):
- if name == 'ebs' or name == 'virtualName':
+ lname = name.lower()
+ if lname in ['ebs', 'virtualname']:
self.current_value = BlockDeviceType(self)
return self.current_value
def endElement(self, name, value, connection):
- if name == 'device' or name == 'deviceName':
+ lname = name.lower()
+ if lname in ['device', 'devicename']:
self.current_name = value
- elif name == 'item':
+ elif lname in ['item', 'member']:
self[self.current_name] = self.current_value
def ec2_build_list_params(self, params, prefix=''):
« no previous file with comments | « third_party/boto/boto/ec2/autoscale/policy.py ('k') | third_party/boto/boto/ec2/cloudwatch/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698