Adjust the usage of map items() to iteritems() which will help later translation to python 3.

This commit is contained in:
Joshua Harlow 2012-06-16 07:33:39 -07:00
parent bf1ed422b0
commit ffb83c5c9f

View File

@ -198,7 +198,7 @@ class DataSourceEc2(sources.DataSource):
# 'ephemeral0': '/dev/sdb',
# 'root': '/dev/sda1'}
found = None
for (entname, device) in self.metadata['block-device-mapping'].items():
for (entname, device) in self.metadata['block-device-mapping'].iteritems():
if entname == name:
found = device
break