Rename OpDelTags and LUDelTags
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:14 +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 6edd7b6..f59668b 100644 (file)
@@ -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)
 
 
index f8a02bd..f6728cb 100644 (file)
@@ -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.
 
   """
index d0c0ef4..3c7355f 100644 (file)
@@ -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 = [
index d30f0cd..fbafa27 100644 (file)
@@ -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)])