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

Rename OpAddGroup and LUAddGroup


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent bd8210a7
......@@ -45,7 +45,7 @@ def AddGroup(opts, args):
"""
(group_name,) = args
op = opcodes.OpAddGroup(group_name=group_name, ndparams=opts.ndparams,
op = opcodes.OpGroupAdd(group_name=group_name, ndparams=opts.ndparams,
alloc_policy=opts.alloc_policy)
SubmitOpCode(op, opts=opts)
......
......@@ -9916,7 +9916,7 @@ class LUBackupRemove(NoHooksLU):
" Domain Name.")
class LUAddGroup(LogicalUnit):
class LUGroupAdd(LogicalUnit):
"""Logical unit for creating node groups.
"""
......
......@@ -1015,7 +1015,7 @@ class OpGrowDisk(OpCode):
# Node group opcodes
class OpAddGroup(OpCode):
class OpGroupAdd(OpCode):
"""Add a node group to the cluster."""
OP_ID = "OP_GROUP_ADD"
OP_DSC_FIELD = "group_name"
......
......@@ -551,14 +551,14 @@ class R_2_nodes_name_storage_repair(baserlib.R_Generic):
def _ParseCreateGroupRequest(data, dry_run):
"""Parses a request for creating a node group.
@rtype: L{opcodes.OpAddGroup}
@rtype: L{opcodes.OpGroupAdd}
@return: Group creation opcode
"""
group_name = baserlib.CheckParameter(data, "name")
alloc_policy = baserlib.CheckParameter(data, "alloc_policy", default=None)
return opcodes.OpAddGroup(group_name=group_name,
return opcodes.OpGroupAdd(group_name=group_name,
alloc_policy=alloc_policy,
dry_run=dry_run)
......
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