From 2c8702130108ad914765a0f0af8b24985f32059a Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 15 Jan 2019 14:27:32 -0700 Subject: [PATCH] Avoid incorrectly updating osTicket disk checkbox * Only update if disk tests are enabled and disk(s) were detected * Addresses issue #40 --- .bin/Scripts/functions/hw_diags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)