Rename OpQueryExports and LUQueryExports
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 11:55:37 +0000 (12:55 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:11 +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 361dc30..1817c4d 100644 (file)
@@ -9494,7 +9494,7 @@ class LUSetInstanceParams(LogicalUnit):
     }
 
 
-class LUQueryExports(NoHooksLU):
+class LUBackupQuery(NoHooksLU):
   """Query the exports list
 
   """
@@ -9753,7 +9753,7 @@ class LUBackupExport(LogicalUnit):
     nodelist.remove(self.dst_node.name)
 
     # on one-node clusters nodelist will be empty after the removal
-    # if we proceed the backup would be removed because OpQueryExports
+    # if we proceed the backup would be removed because OpBackupQuery
     # substitutes an empty list with the full cluster node list.
     iname = self.instance.name
     if nodelist:
index e72dfba..66744af 100644 (file)
@@ -1089,7 +1089,7 @@ class OpDiagnoseOS(OpCode):
 
 
 # Exports opcodes
-class OpQueryExports(OpCode):
+class OpBackupQuery(OpCode):
   """Compute the list of exported images."""
   OP_ID = "OP_BACKUP_QUERY"
   OP_PARAMS = [
index 8b276c3..f112b46 100644 (file)
@@ -307,7 +307,7 @@ class ClientOps:
         raise errors.OpPrereqError("Sync queries are not allowed",
                                    errors.ECODE_INVAL)
       logging.info("Received exports query request")
-      op = opcodes.OpQueryExports(nodes=nodes, use_locking=use_locking)
+      op = opcodes.OpBackupQuery(nodes=nodes, use_locking=use_locking)
       return self._Query(op)
 
     elif method == luxi.REQ_QUERY_CONFIG_VALUES: