summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 07:34:52 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 07:34:52 -0700
commit76f2e0e51dc29b7737ed3aee540749191465ae58 (patch)
tree90bcf713317ce3eadfb1f86f50cd9498b4d25523 /cloudinit/sources
parentcbf1438666fa275619811806ad7922a598ff5dce (diff)
downloadvyos-cloud-init-76f2e0e51dc29b7737ed3aee540749191465ae58.tar.gz
vyos-cloud-init-76f2e0e51dc29b7737ed3aee540749191465ae58.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/__init__.py2
1 files changed, 1 insertions, 1 deletions
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.