Commit e16dfb5b authored by Guido Trotter's avatar Guido Trotter
Browse files

gnt-os diagnose: show os variants

We already show the per-node os variants, also show the global ones.
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarOlivier Tharan <>
parent 07150497
......@@ -89,8 +89,8 @@ def DiagnoseOS(opts, args):
@return: the desired exit code
op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "node_status"],
op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "variants",
"node_status"], names=[])
result = SubmitOpCode(op)
if not result:
......@@ -99,7 +99,7 @@ def DiagnoseOS(opts, args):
has_bad = False
for os_name, os_valid, node_data in result:
for os_name, os_valid, os_variants, node_data in result:
nodes_valid = {}
nodes_bad = {}
nodes_hidden = {}
......@@ -140,6 +140,8 @@ def DiagnoseOS(opts, args):
ToStdout("OS: %s [global status: %s]", os_name, status)
if os_variants:
ToStdout(" Variants: [%s]" % ', '.join(os_variants))
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