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

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Sep 9, 2024
1 parent 3fe8534 commit d7f1c98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kontrol-service/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"

api "github.com/kurtosis-tech/kardinal/libs/cli-kontrol-api/api/golang/server"
apitypes "github.com/kurtosis-tech/kardinal/libs/cli-kontrol-api/api/golang/types"
managerapi "github.com/kurtosis-tech/kardinal/libs/manager-kontrol-api/api/golang/server"
Expand Down Expand Up @@ -120,7 +121,7 @@ func (sv *Server) DeleteTenantUuidFlowFlowId(_ context.Context, request api.Dele
}
return api.DeleteTenantUuidFlowFlowId500JSONResponse{errResp}, nil
}

logrus.Infof("Successfully deleted topologies.")
return api.DeleteTenantUuidFlowFlowId2xxResponse{StatusCode: 200}, nil
}
Expand Down Expand Up @@ -540,8 +541,8 @@ func getTenantTopologies(sv *Server, tenantUuidStr string) (*resolved.ClusterTop
return nil, nil, nil, nil, nil, err
}
} else {
baseClusterTopology.FlowID = prodFlowId
baseClusterTopology.Namespace = prodFlowId
baseClusterTopology.FlowID = prodFlowId
baseClusterTopology.Namespace = prodFlowId
}

var serviceConfigs []apitypes.ServiceConfig
Expand Down Expand Up @@ -587,7 +588,7 @@ func deleteTenantTopologies(sv *Server, tenantUuidStr string) error {
logrus.Errorf("an error occured while deleting tenant flows %s. erro was \n: '%v'", tenant.TenantId, err.Error())
return err
}

err = sv.db.DeleteTenantPluginConfigs(tenant.TenantId)
if err != nil {
logrus.Errorf("an error occured while deleting tenant plugin configs %s. erro was \n: '%v'", tenant.TenantId, err.Error())
Expand Down

0 comments on commit d7f1c98

Please sign in to comment.