def _NodeInfoPreProc(node, args):
  assert len(args) == 2
  # The storage_units argument is either a dictionary with one value for each
  # node, or a fixed value to be used for all the nodes
  if type(args[0]) is dict:
    return [args[0][node], args[1]]
  else:
    return args
Prepare the storage_units argument for node_info calls.
dataset/ETHPy150Open ganeti/ganeti/lib/rpc_defs.py/_NodeInfoPreProc