parent
0e4ee42f28
commit
487bfba2e5
1 changed files with 17 additions and 16 deletions
|
|
@ -1614,23 +1614,24 @@ def ost_update_checkboxes(state):
|
||||||
state.ost.set_flag_passed('CPU')
|
state.ost.set_flag_passed('CPU')
|
||||||
|
|
||||||
# Check results for all disks
|
# Check results for all disks
|
||||||
all_disks_passed = True
|
if state.disks:
|
||||||
for disk in state.disks:
|
all_disks_passed = True
|
||||||
if disk.any_test_failed():
|
for disk in state.disks:
|
||||||
# Mark failed disk in osTicket and stop checking results
|
if disk.any_test_failed():
|
||||||
all_disks_passed = False
|
# Mark failed disk in osTicket and stop checking results
|
||||||
state.ost.set_flag_failed('Disk')
|
all_disks_passed = False
|
||||||
break
|
state.ost.set_flag_failed('Disk')
|
||||||
if not disk.all_tests_passed():
|
break
|
||||||
all_disks_passed = False
|
if not disk.all_tests_passed():
|
||||||
break
|
all_disks_passed = False
|
||||||
|
break
|
||||||
|
|
||||||
# All disks passed
|
# All disks passed
|
||||||
if (all_disks_passed
|
if (all_disks_passed
|
||||||
and all(disk_tests_enabled)
|
and all(disk_tests_enabled)
|
||||||
and len(disk_tests_enabled) == NUM_DISK_TESTS):
|
and len(disk_tests_enabled) == NUM_DISK_TESTS):
|
||||||
# Only mark as passed if a full disk diagnostic passed
|
# Only mark as passed if a full disk diagnostic passed
|
||||||
state.ost.set_flag_passed('Disk')
|
state.ost.set_flag_passed('Disk')
|
||||||
|
|
||||||
|
|
||||||
def print_countdown(proc, seconds):
|
def print_countdown(proc, seconds):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue