From 76f2e0e51dc29b7737ed3aee540749191465ae58 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 07:34:52 -0700 Subject: Adjust the usage of map items() to iteritems() which will help later translation to python 3. --- cloudinit/sources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index beb0f3d7..55900119 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -78,7 +78,7 @@ class DataSource(object): return list(self.metadata['public-keys']) if isinstance(self.metadata['public-keys'], (dict)): - for _keyname, klist in self.metadata['public-keys'].items(): + for (_keyname, klist) in self.metadata['public-keys'].iteritems(): # lp:506332 uec metadata service responds with # data that makes boto populate a string for 'klist' rather # than a list. -- cgit v1.2.3