hspace: fix failure handling of tryAlloc results
authorIustin Pop <iustin@google.com>
Thu, 9 Jul 2009 13:16:46 +0000 (15:16 +0200)
committerIustin Pop <iustin@google.com>
Thu, 9 Jul 2009 13:16:46 +0000 (15:16 +0200)
commit31e7ac1760896288d53dc613aefca84c0c0ef935
treeafecd3dc0b67ad8b5b24d8ae2d5c9a88b86ae033
parent478df6860fe53fa36264bd8a7ca6cfdda4afd124
hspace: fix failure handling of tryAlloc results

Currently hspace doesn't handle failures from tryAlloc correctly; this
patch changes the iterateDepth function in hspace to return a Result (…)
so that errors can be propagated correctly.

The patch also changes one output key to be more clear and a typo in
Cluster.hs
Ganeti/HTools/Cluster.hs
hspace.hs