#NEWLINE# def action( self , request , obj_id ) : #NEWLINE# #INDENT# if self . paused : #NEWLINE# #INDENT# api . nova . server_unpause ( request , obj_id ) #NEWLINE# self . current_past_action = UNPAUSE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# api . nova . server_pause ( request , obj_id ) #NEWLINE# self . current_past_action = PAUSE