#NEWLINE# def get_open_ports( self , node_group ) : #NEWLINE# #INDENT# ports_map = { #NEWLINE# #INDENT# 'nimbus' : [ 8080 ] , #NEWLINE# #UNINDENT# } #NEWLINE# ports = [ ] #NEWLINE# for process in node_group . node_processes : #NEWLINE# #INDENT# if ( process in ports_map ) : #NEWLINE# #INDENT# ports . extend ( ports_map [ process ] ) #NEWLINE# #UNINDENT# #UNINDENT# return ports