Skip to content

Commit

Permalink
swap the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mjudeikis committed Oct 6, 2023
1 parent a5d09c4 commit 7eae1c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions castai/resource_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"net/http"
"time"

"github.com/davecgh/go-spew/spew"
jsonpatch "github.com/evanphx/json-patch"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down Expand Up @@ -114,7 +113,6 @@ func getCurrentPolicies(ctx context.Context, client sdk.ClientWithResponsesInter
log.Printf("[INFO] Getting cluster autoscaler information.")

resp, err := client.PoliciesAPIGetClusterPoliciesWithResponse(ctx, clusterId)
spew.Dump(resp)
if err != nil {
return nil, err
} else if resp.StatusCode() == http.StatusNotFound {
Expand Down
2 changes: 1 addition & 1 deletion castai/sdk/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sdk
//go:generate echo "generating sdk"

//go:generate go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.11.0
//go:generate oapi-codegen -config go-sdk.yaml https://api-mjudeikis.localenv.cast.ai/v1/spec/openapi.json
//go:generate oapi-codegen -config go-sdk.yaml https://api.cast.ai/v1/spec/openapi.json

//go:generate go install github.com/golang/mock/mockgen
//go:generate mockgen -source client.gen.go -destination mock/client.go . ClientWithResponsesInterface

0 comments on commit 7eae1c2

Please sign in to comment.