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)
return self.gq.OldStyleQuery(self)
-class LUSetGroupParams(LogicalUnit):
+class LUGroupSetParams(LogicalUnit):
"""Modifies the parameters of a node group.
"""
]
-class OpSetGroupParams(OpCode):
+class OpGroupSetParams(OpCode):
"""Change the parameters of a node group."""
OP_ID = "OP_GROUP_SET_PARAMS"
OP_DSC_FIELD = "group_name"
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):