Avoid incorrectly updating osTicket disk checkbox
* Only update if disk tests are enabled and disk(s) were detected * Addresses issue #40
This commit is contained in:
parent
402f3854d5
commit
2c87021301
1 changed files with 1 additions and 1 deletions
|
|
@ -1101,7 +1101,7 @@ def run_hw_tests(state):
|
|||
show_results(state)
|
||||
|
||||
# Post disk results
|
||||
if not state.ost.disabled:
|
||||
if _disk_tests_enabled and state.disks and not state.ost.disabled:
|
||||
print_standard('Posting results to osTicket...')
|
||||
for disk in state.disks:
|
||||
state.ost.post_device_results(disk, state.ticket_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue