diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 361dc30304f1b0ead6f9284e40437394bcb50e4e..1817c4dd3aeb15ce966ca51705e7b5dfd1abb267 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 e72dfba00edad73fd03932ed0a83b09cb55786c0..66744afe8f188e633f7dc85ca6eb6e90bd1ff8ee 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 8b276c3f68561d73d92fb32ce5df3799cc06945d..f112b46a3847d41e86f4a8612baab494d4d6b89f 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: