Commit 4d1baa51 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpRemoveGroup and LURemoveGroup


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent d4d654bd
...@@ -161,7 +161,7 @@ def RemoveGroup(opts, args): ...@@ -161,7 +161,7 @@ def RemoveGroup(opts, args):
""" """
(group_name,) = args (group_name,) = args
op = opcodes.OpRemoveGroup(group_name=group_name) op = opcodes.OpGroupRemove(group_name=group_name)
SubmitOpCode(op, opts=opts) SubmitOpCode(op, opts=opts)
......
...@@ -10252,7 +10252,7 @@ class LUSetGroupParams(LogicalUnit): ...@@ -10252,7 +10252,7 @@ class LUSetGroupParams(LogicalUnit):
class LURemoveGroup(LogicalUnit): class LUGroupRemove(LogicalUnit):
HPATH = "group-remove" HPATH = "group-remove"
HTYPE = constants.HTYPE_GROUP HTYPE = constants.HTYPE_GROUP
REQ_BGL = False REQ_BGL = False
......
...@@ -1059,7 +1059,7 @@ class OpSetGroupParams(OpCode): ...@@ -1059,7 +1059,7 @@ class OpSetGroupParams(OpCode):
] ]
class OpRemoveGroup(OpCode): class OpGroupRemove(OpCode):
"""Remove a node group from the cluster.""" """Remove a node group from the cluster."""
OP_ID = "OP_GROUP_REMOVE" OP_ID = "OP_GROUP_REMOVE"
OP_DSC_FIELD = "group_name" OP_DSC_FIELD = "group_name"
......
...@@ -614,7 +614,7 @@ class R_2_groups_name(baserlib.R_Generic): ...@@ -614,7 +614,7 @@ class R_2_groups_name(baserlib.R_Generic):
"""Delete a node group. """Delete a node group.
""" """
op = opcodes.OpRemoveGroup(group_name=self.items[0], op = opcodes.OpGroupRemove(group_name=self.items[0],
dry_run=bool(self.dryRun())) dry_run=bool(self.dryRun()))
return baserlib.SubmitJob([op]) return baserlib.SubmitJob([op])
......
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