outpost: fix invalid incluster config causing Outpost Service Connection list to fail

This commit is contained in:
Jens Langhammer 2020-12-15 21:17:33 +01:00
parent 4b1e73251a
commit d9956e1e9c
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ class KubernetesServiceConnection(OutpostServiceConnection):
return OutpostServiceConnectionState(
version=version.git_version, healthy=True
)
except (OpenApiException, HTTPError):
except (OpenApiException, HTTPError, ServiceConnectionInvalid):
return OutpostServiceConnectionState(version="", healthy=False)
def client(self) -> ApiClient: