Revision f25508be

b/htools/Ganeti/HTools/IAlloc.hs
283 283
      snode = Instance.sNode inst
284 284
  when (snode == sorig) $
285 285
       fail "Internal error: instance didn't change secondary node?!"
286
  when (snode == pnode) $
287
       fail "Internal error: selected primary as new secondary?!"
286 288

  
287 289
  nodes' <- if (nodes == [pnode, snode])
288 290
            then return [snode] -- only the new secondary is needed

Also available in: Unified diff