Merge "Fix Field `health_status_reason[api]' cannot be None`" into stable/train
This commit is contained in:
commit
b842242527
|
@ -246,6 +246,7 @@ class K8sMonitor(monitors.MonitorBase):
|
|||
if not api_status:
|
||||
api_status = (getattr(exp_api, 'body', None) or
|
||||
getattr(exp_api, 'message', None))
|
||||
health_status_reason['api'] = api_status
|
||||
if api_status is not None:
|
||||
health_status_reason['api'] = api_status
|
||||
|
||||
return health_status, health_status_reason
|
||||
|
|
Loading…
Reference in New Issue