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 (