From 7ca2d4d838c6cb4dd0011523552ace2296c89bc1 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sat, 15 Jan 2011 12:55:37 +0100 Subject: [PATCH] Rename OpQueryExports and LUQueryExports 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/cmdlib.py | 4 ++-- lib/opcodes.py | 2 +- lib/server/masterd.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 361dc3030..1817c4dd3 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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: diff --git a/lib/opcodes.py b/lib/opcodes.py index e72dfba00..66744afe8 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -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 = [ diff --git a/lib/server/masterd.py b/lib/server/masterd.py index 8b276c3f6..f112b46a3 100644 --- a/lib/server/masterd.py +++ b/lib/server/masterd.py @@ -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: -- GitLab