htools: rework compCV so that we can use [Node] too
authorIustin Pop <iustin@google.com>
Wed, 6 Jul 2011 14:52:01 +0000 (16:52 +0200)
committerIustin Pop <iustin@google.com>
Fri, 15 Jul 2011 12:32:36 +0000 (14:32 +0200)
commit9bb5721c65e25544c4cae671b07c541afb7c9add
treeeff774a87afd285c3e713ac837ffa13cbc82aa87
parent2f4c951eeee5362ef8d9959f188b4f2ec9bb71d9
htools: rework compCV so that we can use [Node] too

In some cases, we have a [Node.Node] list, instead of a Node.List
structure. Instead of converting [Node.Node] to the latter, let's
rework compCV and add a compCVNodes such that we skip this
(potentially expensive) step.

This already allows a simplification in a unittest, and will simplify
consumers of Node.computeGroups.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/Cluster.hs
htools/Ganeti/HTools/QC.hs