From e126df2560d772680853cb20aa2536830e95cac8 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sat, 15 Jan 2011 12:55:56 +0100
Subject: [PATCH] Rename OpRenameCluster and LURenameCluster
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/client/gnt_cluster.py | 2 +-
 lib/cmdlib.py             | 2 +-
 lib/opcodes.py            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py
index cc7e2d884..35ac373ed 100644
--- a/lib/client/gnt_cluster.py
+++ b/lib/client/gnt_cluster.py
@@ -198,7 +198,7 @@ def RenameCluster(opts, args):
     if not AskUser(usertext):
       return 1
 
-  op = opcodes.OpRenameCluster(name=new_name)
+  op = opcodes.OpClusterRename(name=new_name)
   result = SubmitOpCode(op, opts=opts, cl=cl)
 
   if result:
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index e6231a957..761781ce1 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -2571,7 +2571,7 @@ class LURepairDiskSizes(NoHooksLU):
     return changed
 
 
-class LURenameCluster(LogicalUnit):
+class LUClusterRename(LogicalUnit):
   """Rename the cluster.
 
   """
diff --git a/lib/opcodes.py b/lib/opcodes.py
index dcb46e346..052b36cf6 100644
--- a/lib/opcodes.py
+++ b/lib/opcodes.py
@@ -470,7 +470,7 @@ class OpClusterConfigQuery(OpCode):
     ]
 
 
-class OpRenameCluster(OpCode):
+class OpClusterRename(OpCode):
   """Rename the cluster.
 
   @type name: C{str}
-- 
GitLab