From a2aed12dcd68c7ed76825cc6486b537dcd59df70 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Thu, 15 Jun 2023 22:54:29 +0100 Subject: [PATCH] decom: Fix a typo in routing decommissioning requests (#17435) A specific node should do the decommissioning task, however routing the start decommissioning to that node was not working properly. Co-authored-by: Anis Elleuch --- cmd/admin-handlers-pools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers-pools.go b/cmd/admin-handlers-pools.go index 991ec2e11..56ab891e3 100644 --- a/cmd/admin-handlers-pools.go +++ b/cmd/admin-handlers-pools.go @@ -95,7 +95,7 @@ func (a adminAPIHandlers) StartDecommission(w http.ResponseWriter, r *http.Reque poolIndices = append(poolIndices, idx) } - if len(poolIndices) > 0 && globalEndpoints[poolIndices[0]].Endpoints[0].IsLocal { + if len(poolIndices) > 0 && !globalEndpoints[poolIndices[0]].Endpoints[0].IsLocal { ep := globalEndpoints[poolIndices[0]].Endpoints[0] for nodeIdx, proxyEp := range globalProxyEndpoints { if proxyEp.Endpoint.Host == ep.Host {