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

Rename OpDeactivateInstanceDisks and LUDeactivateInstanceDisks


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent e1530b10
......@@ -611,7 +611,7 @@ def DeactivateDisks(opts, args):
"""
instance_name = args[0]
op = opcodes.OpDeactivateInstanceDisks(instance_name=instance_name)
op = opcodes.OpInstanceDeactivateDisks(instance_name=instance_name)
SubmitOrSend(op, opts)
return 0
......
......@@ -4763,7 +4763,7 @@ def _StartInstanceDisks(lu, instance, force):
raise errors.OpExecError("Disk consistency error")
class LUDeactivateInstanceDisks(NoHooksLU):
class LUInstanceDeactivateDisks(NoHooksLU):
"""Shutdown an instance's disks.
"""
......
......@@ -944,7 +944,7 @@ class OpInstanceActivateDisks(OpCode):
]
class OpDeactivateInstanceDisks(OpCode):
class OpInstanceDeactivateDisks(OpCode):
"""Deactivate an instance's disks."""
OP_ID = "OP_INSTANCE_DEACTIVATE_DISKS"
OP_DSC_FIELD = "instance_name"
......
......@@ -1136,7 +1136,7 @@ class R_2_instances_name_deactivate_disks(baserlib.R_Generic):
"""
instance_name = self.items[0]
op = opcodes.OpDeactivateInstanceDisks(instance_name=instance_name)
op = opcodes.OpInstanceDeactivateDisks(instance_name=instance_name)
return baserlib.SubmitJob([op])
......
......@@ -848,7 +848,7 @@ class Burner(object):
Log("instance %s", instance, indent=1)
op_start = self.StartInstanceOp(instance)
op_act = opcodes.OpInstanceActivateDisks(instance_name=instance)
op_deact = opcodes.OpDeactivateInstanceDisks(instance_name=instance)
op_deact = opcodes.OpInstanceDeactivateDisks(instance_name=instance)
op_stop = self.StopInstanceOp(instance)
Log("activate disks when online", indent=2)
Log("activate disks when offline", 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