Signed-off-by: Oleg Ponomarev <[email protected]>
---
 src/Ganeti/HTools/Cluster/Moves.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Ganeti/HTools/Cluster/Moves.hs 
b/src/Ganeti/HTools/Cluster/Moves.hs
index 560c248..4b98e20 100644
--- a/src/Ganeti/HTools/Cluster/Moves.hs
+++ b/src/Ganeti/HTools/Cluster/Moves.hs
@@ -148,7 +148,7 @@ applyMoveEx force nl inst (ReplaceAndFailover new_pdx) =
       tgt_n = Container.find new_pdx nl
       int_p = Node.removePri old_p inst
       int_s = Node.removeSec old_s inst
-      new_inst = Instance.setBoth (setInstanceLocationScore inst int_s tgt_n)
+      new_inst = Instance.setBoth (setInstanceLocationScore inst tgt_n int_p)
                  new_pdx old_pdx
       force_s = Node.offline old_s || force
       new_nl = do -- OpResult
-- 
1.9.1

Reply via email to