From: Michael Hanselmann Date: Fri, 17 Sep 2010 15:35:36 +0000 (+0200) Subject: cli: Pass options in {Add,Remove}Tags X-Git-Tag: v2.2.1rc0~34 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/af1a81d191543ed692184d1185363de04b069d9b 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 Reviewed-by: Iustin Pop --- diff --git a/lib/cli.py b/lib/cli.py index 922ce81..599a59f 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 d07d75c..4fac737 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.