2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 04:07:48 +00:00

Graceful error on no https in get_health

Rather than timeout, provide a more informative
health message.

Change-Id: Ideb0d86c84a4e702ad38a4d5a1ac51c6e610b57d
This commit is contained in:
Jarrod Johnson 2019-07-25 12:45:51 -04:00
parent 142ff10cb2
commit ace29963d6

View File

@ -1728,7 +1728,10 @@ class XCCClient(IMMClient):
break
def get_health(self, summary):
wc = self.get_webclient(False)
try:
wc = self.get_webclient(False)
except Exception:
wc = None
if not wc:
summary['health'] = pygconst.Health.Critical;
summary['badreadings'].append(