From af1a81d191543ed692184d1185363de04b069d9b Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 17 Sep 2010 17:35:36 +0200
Subject: [PATCH] cli: Pass options in {Add,Remove}Tags

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     | 4 ++--
 scripts/gnt-os | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/cli.py b/lib/cli.py
index 922ce81c9..599a59fa9 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -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
diff --git a/scripts/gnt-os b/scripts/gnt-os
index d07d75ce8..4fac7375a 100755
--- a/scripts/gnt-os
+++ b/scripts/gnt-os
@@ -136,6 +136,7 @@ def _OsStatus(status, diagnose):
   else:
     return "invalid - %s" % diagnose
 
+
 def DiagnoseOS(opts, args):
   """Analyse all OSes on this cluster.
 
-- 
GitLab