From 5b44270430c5d2a457524e2d860f252d834aefe5 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 14 Oct 2008 11:29:28 +0000
Subject: [PATCH] Correctly fill the beparams too over RPC

As for the hvparams, we need to replace the sent instance beparams.

Reviewed-by: ultrotter
---
 lib/rpc.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/rpc.py b/lib/rpc.py
index d84084680..05b033172 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -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):
-- 
GitLab