Skip to content

Commit

Permalink
tweak health script
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Dec 23, 2020
1 parent 523ce33 commit 9f6e59c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Workbench/scripts/gethealth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
healthstatus = '<font color="grey">unknown</font>'
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='<font color="green">' + healthstatus + '</font>'
elif (healthstatus == "unhealthy"):
elif ("unhealthy" in healthstatus):
healthstatus='<font color="red">' + healthstatus + '</font>'
else:
healthstatus='<font color="blue">' + healthstatus + '</font>'
Expand Down

0 comments on commit 9f6e59c

Please sign in to comment.