#NEWLINE# @ logging . log_task_wrapper ( LOG . info , _ ( 'Task validation of semantic.' ) ) #NEWLINE# def _validate_config_semantic( self , config ) : #NEWLINE# #INDENT# self . _check_cloud ( ) #NEWLINE# ctx_conf = { #NEWLINE# #INDENT# 'task' : self . task , #NEWLINE# 'admin' : { #NEWLINE# #INDENT# 'credential' : self . admin , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# deployment = objects . Deployment . get ( self . task [ 'deployment_uuid' ] ) #NEWLINE# with self . _get_user_ctx_for_validation ( ctx_conf ) as ctx : #NEWLINE# #INDENT# ctx . setup ( ) #NEWLINE# admin = osclients . Clients ( self . admin ) #NEWLINE# user = osclients . Clients ( ctx_conf [ 'users' ] [ 0 ] [ 'credential' ] ) #NEWLINE# for u in ctx_conf [ 'users' ] : #NEWLINE# #INDENT# user = osclients . Clients ( u [ 'credential' ] ) #NEWLINE# for subtask in config . subtasks : #NEWLINE# #INDENT# for ( pos , workload ) in enumerate ( subtask . workloads ) : #NEWLINE# #INDENT# self . _validate_config_semantic_helper ( admin , user , workload , pos , deployment )