def RpcResultsToHooksResults(rpc_results):
  return dict((node, (rpc_res.fail_msg, rpc_res.offline, rpc_res.payload))
              for (node, rpc_res) in rpc_results.items())
Function to convert RPC results to the format expected by HooksMaster.
dataset/ETHPy150Open ganeti/ganeti/lib/hooksmaster.py/RpcResultsToHooksResults