From a14476902d8b4680e18fdbf2bb2e77e5ff57f5db Mon Sep 17 00:00:00 2001 From: Manoj Mahapatra Date: Thu, 19 Mar 2026 23:38:48 -0700 Subject: [PATCH] Remove obsolete disableAllocator from network delete path --- .../Server/Networks/NetworksService.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Sources/Services/ContainerAPIService/Server/Networks/NetworksService.swift b/Sources/Services/ContainerAPIService/Server/Networks/NetworksService.swift index 4770078e8..afd5c5302 100644 --- a/Sources/Services/ContainerAPIService/Server/Networks/NetworksService.swift +++ b/Sources/Services/ContainerAPIService/Server/Networks/NetworksService.swift @@ -302,12 +302,6 @@ public actor NetworksService { ) } - // disable the allocator so nothing else can attach - // TODO: remove this from the network helper later, not necesssary now that withContainerList is here - guard try await serviceState.client.disableAllocator() else { - throw ContainerizationError(.invalidState, message: "cannot delete subnet \(id) because the IP allocator cannot be disabled with active containers") - } - // start network deletion, this is the last place we'll want to throw do { try await self.deregisterService(configuration: netConfig)