diff options
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/DataSource.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py index 3f851e14..8e4b47e6 100644 --- a/cloudinit/DataSource.py +++ b/cloudinit/DataSource.py @@ -65,6 +65,10 @@ class DataSource: def get_public_ssh_keys(self): keys = [] if not self.metadata.has_key('public-keys'): return([]) + + if isinstance(self.metadata['public-keys'], str): + return(self.metadata['public-keys']) + for keyname, klist in self.metadata['public-keys'].items(): # lp:506332 uec metadata service responds with # data that makes boto populate a string for 'klist' rather |