#NEWLINE# def get_public_keys( self ) : #NEWLINE# #INDENT# ssh_keys = [ ] #NEWLINE# keys_info = self . _get_cache_data ( ( '%s/meta-data/public-keys' % self . _metadata_version ) , decode = True ) . splitlines ( ) #NEWLINE# for key_info in keys_info : #NEWLINE# #INDENT# ( idx , key_name ) = key_info . split ( '=' ) #NEWLINE# ssh_key = self . _get_cache_data ( ( '%(version)s/meta-data/public-keys/%(idx)s/openssh-key' % { #NEWLINE# #INDENT# 'version' : self . _metadata_version , #NEWLINE# 'idx' : idx , #NEWLINE# #UNINDENT# } ) , decode = True ) #NEWLINE# ssh_keys . append ( ssh_key . strip ( ) ) #NEWLINE# #UNINDENT# return ssh_keys