Adjust the usage of map items() to iteritems() which will help later translation to python 3.
This commit is contained in:
parent
bf1ed422b0
commit
ffb83c5c9f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user