Added posting results line to results screen

This commit is contained in:
2Shirt 2018-12-26 21:50:34 -07:00
parent 41b8d632ae
commit 1d9c3b1869
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1034,6 +1034,8 @@ def run_hw_tests(state):
show_results(state)
# Post disk results
if not state.ost.disabled:
print_standard('Posting results to osTicket...')
for disk in state.disks:
state.ost.post_device_results(disk, state.ticket_id)
@ -1054,6 +1056,9 @@ def run_hw_tests(state):
elif all_disks_passed:
state.ost.set_disk_passed(state.ticket_id)
# Spacer
print_standard(' ')
# Check for osTicket errors
if state.ost.errors:
print_warning('Errors encountered posting results to osTicket.')