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

Rename OpRemoveExport and LURemoveExport


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 7ca2d4d8
......@@ -107,7 +107,7 @@ def RemoveExport(opts, args):
@return: the desired exit code
"""
op = opcodes.OpRemoveExport(instance_name=args[0])
op = opcodes.OpBackupRemove(instance_name=args[0])
SubmitOpCode(op, opts=opts)
return 0
......
......@@ -9869,7 +9869,7 @@ class LUBackupExport(LogicalUnit):
return fin_resu, dresults
class LURemoveExport(NoHooksLU):
class LUBackupRemove(NoHooksLU):
"""Remove exports related to the named instance.
"""
......
......@@ -1146,7 +1146,7 @@ class OpBackupExport(OpCode):
]
class OpRemoveExport(OpCode):
class OpBackupRemove(OpCode):
"""Remove an instance's export."""
OP_ID = "OP_BACKUP_REMOVE"
OP_DSC_FIELD = "instance_name"
......
......@@ -740,7 +740,7 @@ class Burner(object):
osparams=self.opts.osparams,
)
erem_op = opcodes.OpRemoveExport(instance_name=instance)
erem_op = opcodes.OpBackupRemove(instance_name=instance)
Log("export to node %s", enode, indent=2)
Log("remove instance", indent=2)
......
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