#NEWLINE# def MockHooksExecutionFn( nodes , _hpath , _phase , _env ) : #NEWLINE# #INDENT# 'Helper function that generate rpc results for call_hooks_runner mock\n\n  ' #NEWLINE# results = RpcResultsBuilder ( ) #NEWLINE# for node in nodes : #NEWLINE# #INDENT# results . AddSuccessfulNode ( node , data = None , get_node_id_fn = ( lambda nid : nid ) ) #NEWLINE# #UNINDENT# return results . Build ( )