ci: update pyright (#3546)

This commit is contained in:
Jens L
2022-09-07 00:23:25 +02:00
committed by GitHub
parent 03a3f1bd6f
commit 62f93c83d4
41 changed files with 131 additions and 95 deletions

View File

@ -74,10 +74,14 @@ def outpost_service_connection_state(connection_pk: Any):
)
if not connection:
return
cls = None
if isinstance(connection, DockerServiceConnection):
cls = DockerClient
if isinstance(connection, KubernetesServiceConnection):
cls = KubernetesClient
if not cls:
LOGGER.warning("No class found for service connection", connection=connection)
return
try:
with cls(connection) as client:
state = client.fetch_state()