From 715462e7d974decafa652d822cabf489037c2fbb Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sat, 15 Jan 2011 13:06:57 +0100
Subject: [PATCH] Rename OpSearchTags and LUSearchTags
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>
Reviewed-by: Michael Hanselmann <hansmi@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 90c4a5123..99fc31ef2 100644
--- a/lib/client/gnt_cluster.py
+++ b/lib/client/gnt_cluster.py
@@ -578,7 +578,7 @@ def SearchTags(opts, args):
   @return: the desired exit code
 
   """
-  op = opcodes.OpSearchTags(pattern=args[0])
+  op = opcodes.OpTagsSearch(pattern=args[0])
   result = SubmitOpCode(op, opts=opts)
   if not result:
     return 1
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index e03bf4907..7dd064458 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -10433,7 +10433,7 @@ class LUTagsGet(TagsLU):
     return list(self.target.GetTags())
 
 
-class LUSearchTags(NoHooksLU):
+class LUTagsSearch(NoHooksLU):
   """Searches the tags for a given pattern.
 
   """
diff --git a/lib/opcodes.py b/lib/opcodes.py
index 505d32074..ffb13594e 100644
--- a/lib/opcodes.py
+++ b/lib/opcodes.py
@@ -1167,7 +1167,7 @@ class OpTagsGet(OpCode):
     ]
 
 
-class OpSearchTags(OpCode):
+class OpTagsSearch(OpCode):
   """Searches the tags in the cluster for a given pattern."""
   OP_ID = "OP_TAGS_SEARCH"
   OP_DSC_FIELD = "pattern"
-- 
GitLab