summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 07:33:39 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 07:33:39 -0700
commitd21afdbf0c89fbd9d49c47060f5245dfb53b0440 (patch)
treedabeccb71ea920527d5908852a7200b095b181dd /cloudinit
parent1156f457d8832649145e23074e35e3bea36d5948 (diff)
downloadvyos-cloud-init-d21afdbf0c89fbd9d49c47060f5245dfb53b0440.tar.gz
vyos-cloud-init-d21afdbf0c89fbd9d49c47060f5245dfb53b0440.zip
Adjust the usage of map items() to iteritems() which will help later translation to python 3.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceEc2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceEc2.py b/cloudinit/sources/DataSourceEc2.py
index 38be71fa..0108954f 100644
--- a/cloudinit/sources/DataSourceEc2.py
+++ b/cloudinit/sources/DataSourceEc2.py
@@ -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