#NEWLINE# def list_live_nodes( self ) : #NEWLINE# #INDENT# page_token = None #NEWLINE# done = False #NEWLINE# nodes = [ ] #NEWLINE# while ( not done ) : #NEWLINE# #INDENT# result = self . _operations . list_nodes ( page_token , self . _page_size ) #NEWLINE# page_token = result . get ( 'nextPageToken' ) #NEWLINE# nodes . extend ( result [ 'items' ] ) #NEWLINE# done = ( not page_token ) #NEWLINE# #UNINDENT# return set ( ( node [ 'name' ] for node in nodes if ( node [ 'status' ] == 'RUNNING' ) ) )