outposts: fix migration error

This commit is contained in:
Jens Langhammer 2020-11-11 14:10:15 +01:00
parent df7642b365
commit 875173a86e
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ def migrate_to_service_connection(apps: Apps, schema_editor: BaseDatabaseSchemaE
# Ensure that local connection have been created # Ensure that local connection have been created
PassbookOutpostConfig.init_local_connection(None) PassbookOutpostConfig.init_local_connection(None)
docker = DockerServiceConnection.objects.filter(local=True) docker = DockerServiceConnection.objects.filter(local=True).first()
k8s = KubernetesServiceConnection.objects.filter(local=True) k8s = KubernetesServiceConnection.objects.filter(local=True).first()
try: try:
for outpost in ( for outpost in (