Commit 71910715 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpPrepareExport and LUPrepareExport


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 4ff922a2
...@@ -9530,7 +9530,7 @@ class LUQueryExports(NoHooksLU): ...@@ -9530,7 +9530,7 @@ class LUQueryExports(NoHooksLU):
return result return result
class LUPrepareExport(NoHooksLU): class LUBackupPrepare(NoHooksLU):
"""Prepares an instance for an export and returns useful information. """Prepares an instance for an export and returns useful information.
""" """
......
...@@ -1098,7 +1098,7 @@ class OpQueryExports(OpCode): ...@@ -1098,7 +1098,7 @@ class OpQueryExports(OpCode):
] ]
class OpPrepareExport(OpCode): class OpBackupPrepare(OpCode):
"""Prepares an instance export. """Prepares an instance export.
@ivar instance_name: Instance name @ivar instance_name: Instance name
......
...@@ -1154,7 +1154,7 @@ class R_2_instances_name_prepare_export(baserlib.R_Generic): ...@@ -1154,7 +1154,7 @@ class R_2_instances_name_prepare_export(baserlib.R_Generic):
instance_name = self.items[0] instance_name = self.items[0]
mode = self._checkStringVariable("mode") mode = self._checkStringVariable("mode")
op = opcodes.OpPrepareExport(instance_name=instance_name, op = opcodes.OpBackupPrepare(instance_name=instance_name,
mode=mode) mode=mode)
return baserlib.SubmitJob([op]) return baserlib.SubmitJob([op])
......
...@@ -246,7 +246,7 @@ def TestInstance(instance): ...@@ -246,7 +246,7 @@ def TestInstance(instance):
_VerifyReturnsJob, 'PUT', None), _VerifyReturnsJob, 'PUT', None),
]) ])
# Test OpPrepareExport # Test OpBackupPrepare
(job_id, ) = _DoTests([ (job_id, ) = _DoTests([
("/2/instances/%s/prepare-export?mode=%s" % ("/2/instances/%s/prepare-export?mode=%s" %
(instance["name"], constants.EXPORT_MODE_REMOTE), (instance["name"], constants.EXPORT_MODE_REMOTE),
......
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