Make the parseRequest function more general
authorMichele Tartara <mtartara@google.com>
Mon, 17 Dec 2012 14:34:17 +0000 (15:34 +0100)
committerMichele Tartara <mtartara@google.com>
Thu, 20 Dec 2012 16:16:39 +0000 (17:16 +0100)
commit5bfcd75f9dd605cd6c03100fd5755b9fa4b9af75
treeac0bf3faf241a58cc5fc951066adb039b7386946
parent80a0546be9633c6f41a62dc224456d4aecab6a66
Make the parseRequest function more general

The parseRequest function of the Confd utils can be used to parse both request
(in the server) and reply (in the client, soon to be implemented) signed
messages.
This patch changes the signature of the function to allow this, and its name
accordingly.

A unit test is updated as well.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
htest/Test/Ganeti/Confd/Utils.hs
htools/Ganeti/Confd/Utils.hs