def Exec(self, feedback_fn):
    mods = [(node_uuid, self.group_uuid) for node_uuid in self.op.node_uuids]

    self.cfg.AssignGroupNodes(mods)
Assign nodes to a new group.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/group.py/LUGroupAssignNodes.Exec