Fix disabling of user shutdown reporting
authorHrvoje Ribicic <riba@google.com>
Mon, 17 Aug 2015 18:24:24 +0000 (18:24 +0000)
committerHrvoje Ribicic <riba@google.com>
Wed, 19 Aug 2015 10:04:50 +0000 (12:04 +0200)
commitfe6287b440efd333a381583f6b8d2938915e286a
tree1f23d6e46dfc59035b623c3b09293d51125a4690
parentdf8c150893c2951932c26cc0d56314e83d781a68
Fix disabling of user shutdown reporting

Unlike the Python-side query logic still used for more detailed
queries, the Haskell queries neglected to take into account the
user-shutdown cluster-level parameter, turning USER_DOWN reporting on
by default. This is especially bad considering that this parameter was
introduced to give time to users to adapt their automation to take the
new statuses into account. This patch makes the parameter usable,
albeit possibly too late.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
src/Ganeti/Query/Instance.hs