Correctly fill the beparams too over RPC
authorIustin Pop <iustin@google.com>
Tue, 14 Oct 2008 11:29:28 +0000 (11:29 +0000)
committerIustin Pop <iustin@google.com>
Tue, 14 Oct 2008 11:29:28 +0000 (11:29 +0000)
As for the hvparams, we need to replace the sent instance beparams.

Reviewed-by: ultrotter

lib/rpc.py

index d840846..05b0331 100644 (file)
@@ -172,7 +172,9 @@ class RpcRunner(object):
 
     """
     idict = instance.ToDict()
-    idict["hvparams"] = self._cfg.GetClusterInfo().FillHV(instance)
+    cluster = self._cfg.GetClusterInfo()
+    idict["hvparams"] = cluster.FillHV(instance)
+    idict["beparams"] = cluster.FillBE(instance)
     return idict
 
   def call_volume_list(self, node_list, vg_name):