#NEWLINE# def ExecGlobalPostHooks( opcode , master_name , rpc_runner , log_fn , cluster_name , master_uuid , job_id , status ) : #NEWLINE# #INDENT# ' Build hooks manager and execute global post hooks just on the master\n\n  ' #NEWLINE# hm = HooksMaster ( opcode , hooks_path = None , nodes = ( [ ] , [ master_uuid ] ) , hooks_execution_fn = rpc_runner , hooks_results_adapt_fn = RpcResultsToHooksResults , build_env_fn = None , prepare_post_nodes_fn = None , log_fn = log_fn , htype = None , cluster_name = cluster_name , master_name = master_name , master_uuid = master_uuid , job_id = job_id ) #NEWLINE# hm . RunPhase ( constants . HOOKS_PHASE_POST , is_global = True , post_status = status )