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

Rename OpAddTags and LUAddTags


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 715462e7
......@@ -422,7 +422,7 @@ def AddTags(opts, args):
_ExtendTags(opts, args)
if not args:
raise errors.OpPrereqError("No tags to be added")
op = opcodes.OpAddTags(kind=kind, name=name, tags=args)
op = opcodes.OpTagsSet(kind=kind, name=name, tags=args)
SubmitOpCode(op, opts=opts)
......
......@@ -10472,7 +10472,7 @@ class LUTagsSearch(NoHooksLU):
return results
class LUAddTags(TagsLU):
class LUTagsSet(TagsLU):
"""Sets a tag on a given object.
"""
......
......@@ -1176,7 +1176,7 @@ class OpTagsSearch(OpCode):
]
class OpAddTags(OpCode):
class OpTagsSet(OpCode):
"""Add a list of tags on a given object."""
OP_ID = "OP_TAGS_SET"
OP_PARAMS = [
......
......@@ -115,7 +115,7 @@ def _Tags_PUT(kind, tags, name, dry_run):
"""Helper function to set tags.
"""
return SubmitJob([opcodes.OpAddTags(kind=kind, name=name,
return SubmitJob([opcodes.OpTagsSet(kind=kind, name=name,
tags=tags, 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