2
0
mirror of https://opendev.org/x/pyghmi synced 2026-12-04 08:07:07 +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
+4 -1
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(