Commit 7cbf74f0 authored by Iustin Pop's avatar Iustin Pop

Rename OpSetGroupParams and LUSetGroupParams

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent a8173e82
......@@ -138,7 +138,7 @@ def SetGroupParams(opts, args):
ToStderr("Please give at least one of the parameters.")
return 1
op = opcodes.OpSetGroupParams(group_name=args[0], # pylint: disable-msg=W0142
op = opcodes.OpGroupSetParams(group_name=args[0], # pylint: disable-msg=W0142
**all_changes)
result = SubmitOrSend(op, opts)
......
......@@ -10182,7 +10182,7 @@ class LUGroupQuery(NoHooksLU):
return self.gq.OldStyleQuery(self)
class LUSetGroupParams(LogicalUnit):
class LUGroupSetParams(LogicalUnit):
"""Modifies the parameters of a node group.
"""
......
......@@ -1047,7 +1047,7 @@ class OpGroupQuery(OpCode):
]
class OpSetGroupParams(OpCode):
class OpGroupSetParams(OpCode):
"""Change the parameters of a node group."""
OP_ID = "OP_GROUP_SET_PARAMS"
OP_DSC_FIELD = "group_name"
......
......@@ -623,12 +623,12 @@ class R_2_groups_name(baserlib.R_Generic):
def _ParseModifyGroupRequest(name, data):
"""Parses a request for modifying a node group.
@rtype: L{opcodes.OpSetGroupParams}
@rtype: L{opcodes.OpGroupSetParams}
@return: Group modify opcode
"""
alloc_policy = baserlib.CheckParameter(data, "alloc_policy", default=None)
return opcodes.OpSetGroupParams(group_name=name, alloc_policy=alloc_policy)
return opcodes.OpGroupSetParams(group_name=name, alloc_policy=alloc_policy)
class R_2_groups_name_modify(baserlib.R_Generic):
......
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