Skip to content

Commit

Permalink
Merge pull request #87 from internet2/PC_wordpress
Browse files Browse the repository at this point in the history
tweak health script
  • Loading branch information
pcaskey authored Dec 23, 2020
2 parents 1792b1f + 9f6e59c commit 07ac226
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 07ac226

Please sign in to comment.