Fix parameters to RPC "os_validate"
authorMichael Hanselmann <hansmi@google.com>
Mon, 24 Oct 2011 14:19:34 +0000 (16:19 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 24 Oct 2011 17:02:50 +0000 (19:02 +0200)
All other RPC wrappers take the node name(s) as the first parameter.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py
lib/rpc.py

index 23ee2e9..b667019 100644 (file)
@@ -8244,7 +8244,7 @@ def _CheckOSParams(lu, required, nodenames, osname, osparams):
 
   """
   nodenames = _FilterVmNodes(lu, nodenames)
-  result = lu.rpc.call_os_validate(required, nodenames, osname,
+  result = lu.rpc.call_os_validate(nodenames, required, osname,
                                    [constants.OS_VALIDATE_PARAMETERS],
                                    osparams)
   for node, nres in result.items():
index 7d75a58..61dbe88 100644 (file)
@@ -1240,7 +1240,7 @@ class RpcRunner(object):
     return result
 
   @_RpcTimeout(_TMO_FAST)
-  def call_os_validate(self, required, nodes, name, checks, params):
+  def call_os_validate(self, nodes, required, name, checks, params):
     """Run a validation routine for a given OS.
 
     This is a multi-node call.