Rename OpAddTags and LUAddTags
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 12:06:57 +0000 (13:06 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:15 +0000 (12:47 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

lib/cli.py
lib/cmdlib.py
lib/opcodes.py
lib/rapi/baserlib.py

index f59668b..de43164 100644 (file)
@@ -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)
 
 
index 7dd0644..fdb7860 100644 (file)
@@ -10472,7 +10472,7 @@ class LUTagsSearch(NoHooksLU):
     return results
 
 
-class LUAddTags(TagsLU):
+class LUTagsSet(TagsLU):
   """Sets a tag on a given object.
 
   """
index ffb1359..85268a9 100644 (file)
@@ -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 = [
index fbafa27..83dc059 100644 (file)
@@ -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)])