cli: Pass options in {Add,Remove}Tags
authorMichael Hanselmann <hansmi@google.com>
Fri, 17 Sep 2010 15:35:36 +0000 (17:35 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 20 Sep 2010 08:12:33 +0000 (10:12 +0200)
They'll be used for job priorities. Also add an empty line to
gnt-os where it's missing.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cli.py
scripts/gnt-os

index 922ce81..599a59f 100644 (file)
@@ -375,7 +375,7 @@ def AddTags(opts, args):
   if not args:
     raise errors.OpPrereqError("No tags to be added")
   op = opcodes.OpAddTags(kind=kind, name=name, tags=args)
-  SubmitOpCode(op)
+  SubmitOpCode(op, opts=opts)
 
 
 def RemoveTags(opts, args):
@@ -392,7 +392,7 @@ def RemoveTags(opts, args):
   if not args:
     raise errors.OpPrereqError("No tags to be removed")
   op = opcodes.OpDelTags(kind=kind, name=name, tags=args)
-  SubmitOpCode(op)
+  SubmitOpCode(op, opts=opts)
 
 
 def check_unit(option, opt, value): # pylint: disable-msg=W0613
index d07d75c..4fac737 100755 (executable)
@@ -136,6 +136,7 @@ def _OsStatus(status, diagnose):
   else:
     return "invalid - %s" % diagnose
 
+
 def DiagnoseOS(opts, args):
   """Analyse all OSes on this cluster.