diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index 18446489..96c37407 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -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)