confd: fix RpcVersion call
authorIustin Pop <iustin@google.com>
Mon, 15 Oct 2012 19:50:50 +0000 (21:50 +0200)
committerIustin Pop <iustin@google.com>
Tue, 16 Oct 2012 09:47:20 +0000 (11:47 +0200)
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

index b46b3ba..e0007c8 100644 (file)
@@ -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