Convert a few existing opcode parameters to safer types
authorIustin Pop <iustin@google.com>
Mon, 19 Nov 2012 15:39:52 +0000 (16:39 +0100)
committerIustin Pop <iustin@google.com>
Wed, 21 Nov 2012 14:58:35 +0000 (15:58 +0100)
commitc7d249d02f832dabaecede98f0bb185df4aa75db
treed6ced8e05cea37c85c8733fee5cf0f0d4890a7f2
parentd6979f3571f6ee37524ba86a8417d86c8cbc2a7b
Convert a few existing opcode parameters to safer types

This does a partial conversion of existing opcodes to the new
non-empty string type, which is needed so that we don't add even more
opcodes without this safety net (and to have consistent "target_node",
etc. in opcodes).

By partial I mean that only the opcode are changed, and not the entire
htools types/workflow, so we use error to abort if, when submitting
the opcodes, we detect an empty node name. FIXME added.

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