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

Rename OpPowercycleNode and LUPowercycleNode


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 2cee4077
......@@ -459,7 +459,7 @@ def PowercycleNode(opts, args):
not AskUser("Are you sure you want to hard powercycle node %s?" % node)):
return 2
op = opcodes.OpPowercycleNode(node_name=node, force=opts.force)
op = opcodes.OpNodePowercycle(node_name=node, force=opts.force)
result = SubmitOpCode(op, opts=opts)
if result:
ToStderr(result)
......
......@@ -4484,7 +4484,7 @@ class LUSetNodeParams(LogicalUnit):
return result
class LUPowercycleNode(NoHooksLU):
class LUNodePowercycle(NoHooksLU):
"""Powercycles a node.
"""
......
......@@ -710,7 +710,7 @@ class OpSetNodeParams(OpCode):
]
class OpPowercycleNode(OpCode):
class OpNodePowercycle(OpCode):
"""Tries to powercycle a node."""
OP_ID = "OP_NODE_POWERCYCLE"
OP_DSC_FIELD = "node_name"
......
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