Revision e16dfb5b
b/scripts/gnt-os | ||
---|---|---|
89 | 89 |
@return: the desired exit code |
90 | 90 |
|
91 | 91 |
""" |
92 |
op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "node_status"],
|
|
93 |
names=[]) |
|
92 |
op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "variants",
|
|
93 |
"node_status"], names=[])
|
|
94 | 94 |
result = SubmitOpCode(op) |
95 | 95 |
|
96 | 96 |
if not result: |
... | ... | |
99 | 99 |
|
100 | 100 |
has_bad = False |
101 | 101 |
|
102 |
for os_name, os_valid, node_data in result: |
|
102 |
for os_name, os_valid, os_variants, node_data in result:
|
|
103 | 103 |
nodes_valid = {} |
104 | 104 |
nodes_bad = {} |
105 | 105 |
nodes_hidden = {} |
... | ... | |
140 | 140 |
ToStdout(msg) |
141 | 141 |
|
142 | 142 |
ToStdout("OS: %s [global status: %s]", os_name, status) |
143 |
if os_variants: |
|
144 |
ToStdout(" Variants: [%s]" % ', '.join(os_variants)) |
|
143 | 145 |
_OutputPerNodeOSStatus(nodes_valid) |
144 | 146 |
_OutputPerNodeOSStatus(nodes_bad) |
145 | 147 |
ToStdout("") |
Also available in: Unified diff