Merge remote branch 'google/stable-2.6' into stable-2.6-ippool-hotplug-esi
[ganeti-local] / htools / Ganeti / HTools / Cluster.hs
index ea86615..ece8415 100644 (file)
@@ -483,7 +483,7 @@ allocateOnSingle nl inst new_pdx =
     Instance.instMatchesPolicy inst (Node.iPolicy p)
     new_p <- Node.addPri p inst
     let new_nl = Container.add new_pdx new_p nl
-        new_score = compCV nl
+        new_score = compCV new_nl
     return (new_nl, new_inst, [new_p], new_score)
 
 -- | Tries to allocate an instance on a given pair of nodes.