Commit af1a81d1 authored by Michael Hanselmann's avatar Michael Hanselmann

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: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent c326b4ef
......@@ -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
......
......@@ -136,6 +136,7 @@ def _OsStatus(status, diagnose):
else:
return "invalid - %s" % diagnose
def DiagnoseOS(opts, args):
"""Analyse all OSes on this cluster.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment