From 875173a86e87ca70cb0aca6096a755c3a759e5d0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Nov 2020 14:10:15 +0100 Subject: [PATCH] outposts: fix migration error --- passbook/outposts/migrations/0010_service_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passbook/outposts/migrations/0010_service_connection.py b/passbook/outposts/migrations/0010_service_connection.py index 95446d561..1b8d1035a 100644 --- a/passbook/outposts/migrations/0010_service_connection.py +++ b/passbook/outposts/migrations/0010_service_connection.py @@ -25,8 +25,8 @@ def migrate_to_service_connection(apps: Apps, schema_editor: BaseDatabaseSchemaE # Ensure that local connection have been created PassbookOutpostConfig.init_local_connection(None) - docker = DockerServiceConnection.objects.filter(local=True) - k8s = KubernetesServiceConnection.objects.filter(local=True) + docker = DockerServiceConnection.objects.filter(local=True).first() + k8s = KubernetesServiceConnection.objects.filter(local=True).first() try: for outpost in (