Fixed osTicket post color for failed diags
This commit is contained in:
parent
60dcc15536
commit
578818271f
1 changed files with 2 additions and 0 deletions
|
|
@ -1272,6 +1272,8 @@ def run_hw_tests(state):
|
||||||
color_code = 'Diags'
|
color_code = 'Diags'
|
||||||
for test in disk.tests.values():
|
for test in disk.tests.values():
|
||||||
if test.disabled:
|
if test.disabled:
|
||||||
|
if test.failed:
|
||||||
|
color_code = 'Diags FAIL'
|
||||||
continue
|
continue
|
||||||
if test.failed or not (test.passed or 'N/A' in test.status):
|
if test.failed or not (test.passed or 'N/A' in test.status):
|
||||||
color_code = 'Diags FAIL'
|
color_code = 'Diags FAIL'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue