From b2a6ccd4efc305fc94f3f177c1d48f7866bb33fa Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 29 Jun 2009 16:25:57 +0200
Subject: [PATCH] Rename the volume_list RPC call to lv_list
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

There are volume-related rpc calls. This patch renames the β€˜volume_list’
call to β€˜lv_list’ to make more clear its purpose.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 daemons/ganeti-noded | 2 +-
 lib/cmdlib.py        | 2 +-
 lib/rpc.py           | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/daemons/ganeti-noded b/daemons/ganeti-noded
index 3310171e6..c1dfa1f08 100755
--- a/daemons/ganeti-noded
+++ b/daemons/ganeti-noded
@@ -340,7 +340,7 @@ class NodeHttpServer(http.server.HttpServer):
   # volume  --------------------------
 
   @staticmethod
-  def perspective_volume_list(params):
+  def perspective_lv_list(params):
     """Query the list of logical volumes in a given volume group.
 
     """
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 7f47b4528..6505f0918 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1335,7 +1335,7 @@ class LUVerifyDisks(NoHooksLU):
     if not nv_dict:
       return result
 
-    node_lvs = self.rpc.call_volume_list(nodes, vg_name)
+    node_lvs = self.rpc.call_lv_list(nodes, vg_name)
 
     to_act = set()
     for node in nodes:
diff --git a/lib/rpc.py b/lib/rpc.py
index 220232c0a..b19c048cc 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -417,13 +417,13 @@ class RpcRunner(object):
   # Begin RPC calls
   #
 
-  def call_volume_list(self, node_list, vg_name):
+  def call_lv_list(self, node_list, vg_name):
     """Gets the logical volumes present in a given volume group.
 
     This is a multi-node call.
 
     """
-    return self._MultiNodeCall(node_list, "volume_list", [vg_name])
+    return self._MultiNodeCall(node_list, "lv_list", [vg_name])
 
   def call_vg_list(self, node_list):
     """Gets the volume group list.
-- 
GitLab