outposts: fix defaults and tests for outposts

This commit is contained in:
Jens Langhammer
2020-11-04 10:54:44 +01:00
parent 706448dc14
commit 3b76af4eaa
14 changed files with 136 additions and 61 deletions

View File

@ -28,11 +28,11 @@ class PassbookOutpostConfig(AppConfig):
import_module("passbook.outposts.signals")
try:
self.init_local_connection()
except (ProgrammingError):
except ProgrammingError:
pass
def init_local_connection(self):
# Check if local kubernetes or docker connections should be created
"""Check if local kubernetes or docker connections should be created"""
from passbook.outposts.models import (
KubernetesServiceConnection,
DockerServiceConnection,