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:
parent
142ff10cb2
commit
ace29963d6
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user