From 8a6dfc5cdfcd6a4e5659ddb31139c0ffdb825927 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 11 Apr 2019 22:01:00 -0700 Subject: [PATCH] Include disk volume report if only I/O fails * Fixes issue #76 --- .bin/Scripts/functions/osticket.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.bin/Scripts/functions/osticket.py b/.bin/Scripts/functions/osticket.py index aed84f92..30b7dd8a 100644 --- a/.bin/Scripts/functions/osticket.py +++ b/.bin/Scripts/functions/osticket.py @@ -346,8 +346,15 @@ class osTicket(): results['Status'] += '*' # Enable CoreStorage searches - results['Core'] = (results['Full Diag'] and - results['Passed']+results['N/A']+results['OVERRIDE'] == len(test_list)) + results['Core'] = False + if results['Full Diag']: + num_passed = results['Passed'] + results['N/A'] + results['OVERRIDE'] + if num_passed == len(test_list): + # We ran all disk tests and all results were acceptable + results['Core'] = True + elif results['Failed'] == 1 and dev.tests['I/O Benchmark'].failed: + # We ran all disk tests and only I/O Benchmark failed + results['Core'] = True # Done return results