Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
The base flow ID is always named prod (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce authored Sep 10, 2024
1 parent 4d71823 commit 61e892f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kontrol-service/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 61e892f

Please sign in to comment.