diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-09-09 14:10:58 -0700 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-09-09 14:10:58 -0700 |
commit | d88823191ed67fd1801931df43e6f6c26e1a0e42 (patch) | |
tree | e3c2ec69aeddb58ced1dd5d3a6002b37b8e2406d /cloudinit/DataSource.py | |
parent | a50943ca264a3efafa2da8e4539744478da1e590 (diff) | |
download | vyos-cloud-init-d88823191ed67fd1801931df43e6f6c26e1a0e42.tar.gz vyos-cloud-init-d88823191ed67fd1801931df43e6f6c26e1a0e42.zip |
return a list, not a string
Diffstat (limited to 'cloudinit/DataSource.py')
-rw-r--r-- | cloudinit/DataSource.py | 2 |
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 |