From 9f6e59c06ef0aba5377a174181c6aed926e3f77b Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Wed, 23 Dec 2020 15:10:26 -0600 Subject: [PATCH] tweak health script --- Workbench/scripts/gethealth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Workbench/scripts/gethealth.py b/Workbench/scripts/gethealth.py index 5d0a7f4..5aa5301 100755 --- a/Workbench/scripts/gethealth.py +++ b/Workbench/scripts/gethealth.py @@ -10,10 +10,10 @@ healthstatus = 'unknown' for line in pipe.stdout: if ('(' in line): - healthstatus=line.split('(')[1].split(')')[0].strip() - if (healthstatus == "healthy"): + healthstatus=line.strip() + if ("healthy" in healthstatus): healthstatus='' + healthstatus + '' - elif (healthstatus == "unhealthy"): + elif ("unhealthy" in healthstatus): healthstatus='' + healthstatus + '' else: healthstatus='' + healthstatus + ''