From d21afdbf0c89fbd9d49c47060f5245dfb53b0440 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 07:33:39 -0700 Subject: Adjust the usage of map items() to iteritems() which will help later translation to python 3. --- cloudinit/sources/DataSourceEc2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3