def _GetInstNodeGroup(ctx, default, node_uuid):
  try:
    node = ctx.nodes[node_uuid]
  except KeyError:
    return default
  else:
    return node.group
Gets group UUID of an instance node.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstNodeGroup