#NEWLINE# def run( self , deployer , state_persister ) : #NEWLINE# #INDENT# results = [ ] #NEWLINE# for open_port in deployer . network . enumerate_open_ports ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# deployer . network . delete_open_port ( open_port ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# results . append ( fail ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# for open_port in open_port . ports : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# deployer . network . open_port ( open_port . port ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# results . append ( fail ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return gather_deferreds ( results )