#NEWLINE# def list_nodes( self ) : #NEWLINE# #INDENT# passwords_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# res = self . _server_list ( ) #NEWLINE# try : #NEWLINE# #INDENT# for password in self . _password_list ( ) [ 'list' ] : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# passwords_map [ password [ 'server' ] [ 'id' ] ] = password [ 'password' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except InvalidCredsError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return [ self . _to_node ( el , passwords_map . get ( el . get ( 'id' ) ) ) for el in res [ 'list' ] ]