Skip to content

Commit e2533b1

Browse files
Remove obsolete disableAllocator from network delete path (#1332)
## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update - [x] Code cleanup ## Motivation and Context [Why is this change needed?] ## Testing - [x] Tested locally - [ ] Added/updated tests - [ ] Added/updated docs
1 parent 0ad33f4 commit e2533b1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/Services/ContainerAPIService/Server/Networks/NetworksService.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,6 @@ public actor NetworksService {
302302
)
303303
}
304304

305-
// disable the allocator so nothing else can attach
306-
// TODO: remove this from the network helper later, not necesssary now that withContainerList is here
307-
guard try await serviceState.client.disableAllocator() else {
308-
throw ContainerizationError(.invalidState, message: "cannot delete subnet \(id) because the IP allocator cannot be disabled with active containers")
309-
}
310-
311305
// start network deletion, this is the last place we'll want to throw
312306
do {
313307
try await self.deregisterService(configuration: netConfig)

0 commit comments

Comments
 (0)