Commit 3f0ab95f authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpDelTags and LUDelTags


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 da2d02e7
......@@ -439,7 +439,7 @@ def RemoveTags(opts, args):
_ExtendTags(opts, args)
if not args:
raise errors.OpPrereqError("No tags to be removed")
op = opcodes.OpDelTags(kind=kind, name=name, tags=args)
op = opcodes.OpTagsDel(kind=kind, name=name, tags=args)
SubmitOpCode(op, opts=opts)
......
......@@ -10500,7 +10500,7 @@ class LUAddTags(TagsLU):
self.cfg.Update(self.target, feedback_fn)
class LUDelTags(TagsLU):
class LUTagsDel(TagsLU):
"""Delete a list of tags from a given object.
"""
......
......@@ -1187,7 +1187,7 @@ class OpAddTags(OpCode):
]
class OpDelTags(OpCode):
class OpTagsDel(OpCode):
"""Remove a list of tags from a given object."""
OP_ID = "OP_TAGS_DEL"
OP_PARAMS = [
......
......@@ -123,7 +123,7 @@ def _Tags_DELETE(kind, tags, name, dry_run):
"""Helper function to delete tags.
"""
return SubmitJob([opcodes.OpDelTags(kind=kind, name=name,
return SubmitJob([opcodes.OpTagsDel(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