#NEWLINE# def __get_config_for_cloud( self ) : #NEWLINE# #INDENT# config = copy . deepcopy ( self . engine . config ) #NEWLINE# if ( not isinstance ( config [ ScenarioExecutor . EXEC ] , list ) ) : #NEWLINE# #INDENT# config [ ScenarioExecutor . EXEC ] = [ config [ ScenarioExecutor . EXEC ] ] #NEWLINE# #UNINDENT# provisioning = config . pop ( Provisioning . PROV ) #NEWLINE# for execution in config [ ScenarioExecutor . EXEC ] : #NEWLINE# #INDENT# execution [ ScenarioExecutor . CONCURR ] = execution . get ( ScenarioExecutor . CONCURR ) . get ( provisioning , None ) #NEWLINE# execution [ ScenarioExecutor . THRPT ] = execution . get ( ScenarioExecutor . THRPT ) . get ( provisioning , None ) #NEWLINE# #UNINDENT# for key in list ( config . keys ( ) ) : #NEWLINE# #INDENT# if ( key not in ( 'scenarios' , ScenarioExecutor . EXEC , 'included-configs' , Service . SERV ) ) : #NEWLINE# #INDENT# config . pop ( key ) #NEWLINE# #UNINDENT# #UNINDENT# assert isinstance ( config , Configuration ) #NEWLINE# config . dump ( self . engine . create_artifact ( 'cloud' , '' ) ) #NEWLINE# return config