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

Merge "Graceful error on no https in get_health"

This commit is contained in:
Zuul 2019-07-25 17:15:36 +00:00 committed by Gerrit Code Review
commit 2f961f6c5f

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(