Rename OpSearchTags and LUSearchTags
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 12:06:57 +0000 (13:06 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:15 +0000 (12:47 +0100)
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
lib/cmdlib.py
lib/opcodes.py

index 90c4a51..99fc31e 100644 (file)
@@ -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
index e03bf49..7dd0644 100644 (file)
@@ -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.
 
   """
index 505d320..ffb1359 100644 (file)
@@ -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"