summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-09-09 14:10:58 -0700
committerScott Moser <smoser@ubuntu.com>2011-09-09 14:10:58 -0700
commitd88823191ed67fd1801931df43e6f6c26e1a0e42 (patch)
treee3c2ec69aeddb58ced1dd5d3a6002b37b8e2406d /cloudinit
parenta50943ca264a3efafa2da8e4539744478da1e590 (diff)
downloadvyos-cloud-init-d88823191ed67fd1801931df43e6f6c26e1a0e42.tar.gz
vyos-cloud-init-d88823191ed67fd1801931df43e6f6c26e1a0e42.zip
return a list, not a string
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/DataSource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py
index 8e4b47e6..7f40c0f8 100644
--- a/cloudinit/DataSource.py
+++ b/cloudinit/DataSource.py
@@ -67,7 +67,7 @@ class DataSource:
if not self.metadata.has_key('public-keys'): return([])
if isinstance(self.metadata['public-keys'], str):
- return(self.metadata['public-keys'])
+ return([self.metadata['public-keys'],])
for keyname, klist in self.metadata['public-keys'].items():
# lp:506332 uec metadata service responds with