#NEWLINE# def get_slots_ports_list( args , cluster , jobs , current_job , host_id ) : #NEWLINE# #INDENT# slot_port = ( jobs [ 'supervisor' ] . base_port + 10 ) #NEWLINE# slot_number = int ( slot_port . storm_config . configuration . generated_files [ 'storm.yaml' ] [ 'slot_number' ] ) #NEWLINE# slots_ports_list = [ ] #NEWLINE# for port_index in range ( slot_number ) : #NEWLINE# #INDENT# slots_ports_list . append ( str ( ( slot_port + port_index ) ) ) #NEWLINE# #UNINDENT# return ',' . join ( slots_ports_list )