#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# 'trials' : parsed_args . trials , #NEWLINE# 'workers' : parsed_args . workers , #NEWLINE# 'stdout' : parsed_args . stdout , #NEWLINE# 'msg_limit_time' : parsed_args . msg_limit_time , #NEWLINE# 'noterm' : parsed_args . noterm , #NEWLINE# #UNINDENT# } #NEWLINE# process = self . client . processes . create ( self . gid , name = 'montecarlo' , nova_flavor_id = parsed_args . flavor , glance_image_id = parsed_args . image , args = options ) #NEWLINE# process_args = process . args #NEWLINE# process_args . pop ( 'gid' ) #NEWLINE# process_args . pop ( 'pid' ) #NEWLINE# process_args . pop ( 'ppid' , None ) #NEWLINE# process_args . pop ( 'proxy_ip' , None ) #NEWLINE# process_args . pop ( 'rackapi_ip' , None ) #NEWLINE# cmd = process . name #NEWLINE# for ( k , v ) in sorted ( process_args . items ( ) ) : #NEWLINE# #INDENT# cmd += ( ( ( ' --' + k ) + ' ' ) + v ) #NEWLINE# #UNINDENT# columns = [ 'pid' , 'ppid' , 'cmd' ] #NEWLINE# data = [ process . pid , process . ppid , parsed_args ] #NEWLINE# return ( columns , data )