Revision 66ad857a htest/Test/Ganeti/HTools/Loader.hs
b/htest/Test/Ganeti/HTools/Loader.hs | ||
---|---|---|
64 | 64 |
Loader.assignIndices (map (\n -> (Node.name n, n)) nodes) |
65 | 65 |
in Map.size nassoc == length nodes && |
66 | 66 |
Container.size kt == length nodes && |
67 |
if not (null nodes) |
|
68 |
then maximum (IntMap.keys kt) == length nodes - 1 |
|
69 |
else True |
|
67 |
(null nodes || maximum (IntMap.keys kt) == length nodes - 1) |
|
70 | 68 |
|
71 | 69 |
-- | Checks that the number of primary instances recorded on the nodes |
72 | 70 |
-- is zero. |
Also available in: Unified diff