def _GetInstNodeGroupName(ctx, default, node_uuid):
  try:
    node = ctx.nodes[node_uuid]
  except KeyError:
    return default

  try:
    group = ctx.groups[node.group]
  except KeyError:
    return default

  return group.name
Gets group name of an instance node.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstNodeGroupName