Fix loading of plain instances via iallocator
authorIustin Pop <iustin@google.com>
Mon, 25 May 2009 20:35:54 +0000 (21:35 +0100)
committerIustin Pop <iustin@google.com>
Mon, 25 May 2009 20:47:25 +0000 (21:47 +0100)
commitbd1794b2a7444e2223aea3d79067538bc391cf42
treeec17afc2285da62f4fcb9767105296960bd42894
parent8a6f10ce6c47dc8c629f2d3ac8513d1dee8c3006
Fix loading of plain instances via iallocator

Currently iallocator is broken when reading single-node instances (and
with an ugly error message). This patch fixes this case, by marking them
with secondary node “noSecondary” like the rest of the code.
Ganeti/HTools/IAlloc.hs