mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-28 06:51:45 +01:00
enable fallback for non initialized node table
This commit is contained in:
@@ -684,10 +684,10 @@ func (r *NodeRepository) GetNodesForList(
|
|||||||
hasNextPage = len(nextNodes) == 1
|
hasNextPage = len(nextNodes) == 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback, ignores stateFilter
|
// Fallback for non-init'd node table in DB; Ignores stateFilter
|
||||||
// if countNodes == 0 {
|
if stateFilter == "all" && countNodes == 0 {
|
||||||
// nodes, countNodes, hasNextPage = getNodesFromTopol(cluster, subCluster, nodeFilter, page)
|
nodes, countNodes, hasNextPage = getNodesFromTopol(cluster, subCluster, nodeFilter, page)
|
||||||
// }
|
}
|
||||||
|
|
||||||
return nodes, stateMap, countNodes, hasNextPage, nil
|
return nodes, stateMap, countNodes, hasNextPage, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user