diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 07:33:39 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 07:33:39 -0700 |
commit | d21afdbf0c89fbd9d49c47060f5245dfb53b0440 (patch) | |
tree | dabeccb71ea920527d5908852a7200b095b181dd /cloudinit/sources | |
parent | 1156f457d8832649145e23074e35e3bea36d5948 (diff) | |
download | vyos-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/sources')
-rw-r--r-- | cloudinit/sources/DataSourceEc2.py | 2 |
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 |