Revision 05ff7a00 htools/Ganeti/HTools/IAlloc.hs
b/htools/Ganeti/HTools/IAlloc.hs | ||
---|---|---|
286 | 286 |
when (snode == pnode) $ |
287 | 287 |
fail "Internal error: selected primary as new secondary?!" |
288 | 288 |
|
289 |
nodes' <- if (nodes == [pnode, snode])
|
|
289 |
nodes' <- if nodes == [pnode, snode]
|
|
290 | 290 |
then return [snode] -- only the new secondary is needed |
291 | 291 |
else fail $ "Internal error: inconsistent node list (" ++ |
292 | 292 |
show nodes ++ ") versus instance nodes (" ++ show pnode ++ |
Also available in: Unified diff