Commit 7ca2d4d8 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpQueryExports and LUQueryExports


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 71910715
......@@ -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:
......
......@@ -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 = [
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment