Rename OpQueryGroups and LUQueryGroups
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 11:56:09 +0000 (12:56 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:12 +0000 (12:47 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

lib/cmdlib.py
lib/opcodes.py
lib/server/masterd.py

index c5cba85..c3c675c 100644 (file)
@@ -10166,7 +10166,7 @@ class _GroupQuery(_QueryBase):
                                 group_to_nodes, group_to_instances)
 
 
-class LUQueryGroups(NoHooksLU):
+class LUGroupQuery(NoHooksLU):
   """Logical unit for querying node groups.
 
   """
index 80d0f7c..f35c3a7 100644 (file)
@@ -1038,7 +1038,7 @@ class OpGroupAssignNodes(OpCode):
     ]
 
 
-class OpQueryGroups(OpCode):
+class OpGroupQuery(OpCode):
   """Compute the list of node groups."""
   OP_ID = "OP_GROUP_QUERY"
   OP_PARAMS = [
index c7d953d..3f2aea1 100644 (file)
@@ -298,7 +298,7 @@ class ClientOps:
       if use_locking:
         raise errors.OpPrereqError("Sync queries are not allowed",
                                    errors.ECODE_INVAL)
-      op = opcodes.OpQueryGroups(names=names, output_fields=fields)
+      op = opcodes.OpGroupQuery(names=names, output_fields=fields)
       return self._Query(op)
 
     elif method == luxi.REQ_QUERY_EXPORTS: