From ff8f00491820a78e6f0bb05eea649ddc3c1e50fe Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 15 Oct 2012 21:50:50 +0200 Subject: [PATCH] confd: fix RpcVersion call By accident, we sent the node object as call data in this rpc call, instead the version request (i.e. nothing). This is due to the fact that the 'call' data comes second, not first in the function argument. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Agata Murawska <agatamurawska@google.com> --- htools/Ganeti/Rpc.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htools/Ganeti/Rpc.hs b/htools/Ganeti/Rpc.hs index b46b3baa4..e0007c846 100644 --- a/htools/Ganeti/Rpc.hs +++ b/htools/Ganeti/Rpc.hs @@ -387,7 +387,7 @@ instance RpcCall RpcCallVersion where rpcCallName _ = "version" rpcCallTimeout _ = rpcTimeoutToRaw Urgent rpcCallAcceptOffline _ = True - rpcCallData call _ = J.encode [call] + rpcCallData _ = J.encode instance Rpc RpcCallVersion RpcResultVersion where rpcResultFill _ res = fromJSValueToRes res RpcResultVersion -- GitLab