def GetNodeUUIDs(nodes, cl):
  return map(lambda t: t[0],
             cl.QueryNodes(names=nodes,
                           fields=["uuid"],
                           use_locking=False))
Retrieves the UUIDs of given nodes.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/GetNodeUUIDs