Commit 8a08be3b authored by Michael Hanselmann's avatar Michael Hanselmann

RAPI: Use FillOpCode for renaming groups

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 12da663a
......@@ -469,8 +469,8 @@ Returns a job ID.
Body parameters:
``new_name`` (string, required)
New node group name.
.. opcode_params:: OP_GROUP_RENAME
:exclude: group_name
......@@ -664,10 +664,10 @@ def _ParseRenameGroupRequest(name, data, dry_run):
@return: Node group rename opcode
new_name = baserlib.CheckParameter(data, "new_name")
return opcodes.OpGroupRename(group_name=name, new_name=new_name,
return baserlib.FillOpcode(opcodes.OpGroupRename, data, {
"group_name": name,
"dry_run": dry_run,
class R_2_groups_name_rename(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