From: Iustin Pop <[email protected]>

---
 lib/cli.py           |    2 +-
 lib/cmdlib.py        |    2 +-
 lib/opcodes.py       |    2 +-
 lib/rapi/baserlib.py |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/cli.py b/lib/cli.py
index f59668b..de43164 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -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)
 
 
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 7dd0644..fdb7860 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -10472,7 +10472,7 @@ class LUTagsSearch(NoHooksLU):
     return results
 
 
-class LUAddTags(TagsLU):
+class LUTagsSet(TagsLU):
   """Sets a tag on a given object.
 
   """
diff --git a/lib/opcodes.py b/lib/opcodes.py
index ffb1359..85268a9 100644
--- a/lib/opcodes.py
+++ b/lib/opcodes.py
@@ -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 = [
diff --git a/lib/rapi/baserlib.py b/lib/rapi/baserlib.py
index fbafa27..83dc059 100644
--- a/lib/rapi/baserlib.py
+++ b/lib/rapi/baserlib.py
@@ -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)])
 
 
-- 
1.7.2.3

Reply via email to