Fix RpcRunner._StaticSingleNodeCall
authorMichael Hanselmann <hansmi@google.com>
Mon, 1 Dec 2008 20:52:03 +0000 (20:52 +0000)
committerMichael Hanselmann <hansmi@google.com>
Mon, 1 Dec 2008 20:52:03 +0000 (20:52 +0000)
Unfortunately, a rpc.Client object was passed as the first parameter,
causing the function to always fail.

Found during QA testing.

Reviewed-by: ultrotter

lib/rpc.py

index 4076e31..1cabc31 100644 (file)
@@ -268,7 +268,7 @@ class RpcRunner(object):
     """
     body = serializer.DumpJson(args, indent=False)
     c = Client(procedure, body, utils.GetNodeDaemonPort())
-    c.ConnectNode(c, node)
+    c.ConnectNode(node)
     return c.GetResults().get(node, False)
 
   def call_volume_list(self, node_list, vg_name):