def BuildHooksNodes(self):
    mn = self.cfg.GetMasterNode()

    all_nodes = self.cfg.GetAllNodesInfo()
    all_nodes.pop(mn, None)

    run_nodes = [mn]
    run_nodes.extend(node.uuid for node in all_nodes.values()
                     if node.group == self.group_uuid)

    return (run_nodes, run_nodes)
Build hooks nodes.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/group.py/LUGroupRename.BuildHooksNodes