htools: start reorganising the IAllocator workflow
authorIustin Pop <iustin@google.com>
Sat, 2 Jul 2011 07:29:50 +0000 (09:29 +0200)
committerIustin Pop <iustin@google.com>
Wed, 13 Jul 2011 10:09:11 +0000 (12:09 +0200)
commitd6cf394e1a166debf69ccee371e7010464bddc79
tree114970261357cebc154300e7b70bf0c53d3286ba
parent00152519014137d42075b04a9b57309950bd4e45
htools: start reorganising the IAllocator workflow

Currently, all IAllocator requests return the same result type: a list
of strings (usually nodes, but can also be instance:nodes). This won't
be true in the future, with the new request types that will return
opcode lists.

Therefore we will need to support multiple result types in the
workflow; the first step is to make the final formatResponse step
result-type-indepedent, so we take out the formatRVal invocation out
of this function.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/IAlloc.hs