From 379cd204a18e9a52ce512b702d20b75396501987 Mon Sep 17 00:00:00 2001 From: Laurent Luce Date: Tue, 10 Sep 2024 19:08:41 -0400 Subject: [PATCH] The base flow ID is always named prod --- kontrol-service/api/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kontrol-service/api/server.go b/kontrol-service/api/server.go index 562bc04..d63ec00 100644 --- a/kontrol-service/api/server.go +++ b/kontrol-service/api/server.go @@ -103,14 +103,14 @@ func (sv *Server) DeleteTenantUuidFlowFlowId(_ context.Context, request api.Dele logrus.Infof("deleting dev flow for tenant '%s'", request.Uuid) sv.analyticsWrapper.TrackEvent(EVENT_FLOW_DELETE, request.Uuid) - clusterTopology, allFlows, _, _, _, err := getTenantTopologies(sv, request.Uuid) + _, allFlows, _, _, _, err := getTenantTopologies(sv, request.Uuid) if err != nil { resourceType := "tenant" missing := api.NotFoundJSONResponse{ResourceType: resourceType, Id: request.Uuid} return api.DeleteTenantUuidFlowFlowId404JSONResponse{NotFoundJSONResponse: missing}, nil } - if request.FlowId == clusterTopology.Namespace { + if request.FlowId == prodFlowId { // We received a request to delete the base topology so we do that + the flows err = deleteTenantTopologies(sv, request.Uuid) if err != nil {