htools: split tryMGAlloc in two
authorIustin Pop <iustin@google.com>
Wed, 6 Jul 2011 22:44:21 +0000 (00:44 +0200)
committerIustin Pop <iustin@google.com>
Fri, 15 Jul 2011 13:10:55 +0000 (15:10 +0200)
commit8fd09137b1819c280afff367ead1a8004ace8ce3
tree9c4b8eb80e85ae646e6170bd812bacb7c9da41fd
parentd52d41de85348cbf9c18156e122718471d4bbf1f
htools: split tryMGAlloc in two

Currently, this function does both identify the best group for an
instance, and format the results (partially). The former functionality
is useful in other contexts too, so let's split the function in two.

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