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

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Sep 9, 2024
1 parent f30f3cd commit 3fe8534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kontrol-service/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func (sv *Server) DeleteTenantUuidFlowFlowId(_ context.Context, request api.Dele

if request.FlowId == clusterTopology.Namespace {
// We received a request to delete the base topology so we do that + the flows
err = clearTenantTopologies(sv, request.Uuid)
err = deleteTenantTopologies(sv, request.Uuid)
if err != nil {
errMsg := fmt.Sprintf("An error occurred clearing the topologies")
errMsg := fmt.Sprintf("An error occurred deleting the topologies")
errResp := api.ErrorJSONResponse{
Error: err.Error(),
Msg: &errMsg,
Expand Down Expand Up @@ -565,7 +565,7 @@ func getTenantTopologies(sv *Server, tenantUuidStr string) (*resolved.ClusterTop
return &baseClusterTopology, flows, tenantTemplates, serviceConfigs, ingressConfigs, nil
}

func clearTenantTopologies(sv *Server, tenantUuidStr string) error {
func deleteTenantTopologies(sv *Server, tenantUuidStr string) error {
tenant, err := sv.db.GetTenant(tenantUuidStr)
if err != nil {
logrus.Errorf("an error occured while getting the tenant %s\n: '%v'", tenantUuidStr, err.Error())
Expand Down

0 comments on commit 3fe8534

Please sign in to comment.