outposts: improve validation of providers (must match outpost type)

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-06-02 16:04:41 +02:00
parent b339452843
commit 6d0e0cbe5a
5 changed files with 75 additions and 3 deletions

View File

@ -65,6 +65,8 @@ def outpost_service_connection_state(connection_pk: Any):
.select_subclasses()
.first()
)
if not connection:
return
state = connection.fetch_state()
cache.set(connection.state_key, state, timeout=None)