Skip to content

Commit

Permalink
fix: Fixed pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
YanniHu1996 committed Jun 1, 2023
1 parent 4236e10 commit d671726
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.8.0
github.com/hashicorp/terraform-plugin-mux v0.9.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
github.com/hashicorp/terraform-plugin-testing v1.2.0
github.com/joho/godotenv v1.5.1
github.com/kr/pretty v0.3.1
github.com/mitchellh/mapstructure v1.5.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ github.com/hashicorp/terraform-plugin-mux v0.9.0 h1:a2Xh63cunDB/1GZECrV02cGA74Ah
github.com/hashicorp/terraform-plugin-mux v0.9.0/go.mod h1:8NUFbgeMigms7Tma/r2Vgi5Jv5mPv4xcJ05pJtIOhwc=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 h1:G9WAfb8LHeCxu7Ae8nc1agZlQOSCUWsb610iAogBhCs=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1/go.mod h1:xcOSYlRVdPLmDUoqPhO9fiO/YCN/l6MGYeTzGt5jgkQ=
github.com/hashicorp/terraform-plugin-testing v1.2.0 h1:pASRAe6BOZFO4xSGQr9WzitXit0nrQAYDk8ziuRfn9E=
github.com/hashicorp/terraform-plugin-testing v1.2.0/go.mod h1:+8bp3O7xUb1UtBcdknrGdVRIuTw4b62TYSIgXHqlyew=
github.com/hashicorp/terraform-registry-address v0.1.0 h1:W6JkV9wbum+m516rCl5/NjKxCyTVaaUBbzYcMzBDO3U=
github.com/hashicorp/terraform-registry-address v0.1.0/go.mod h1:EnyO2jYO6j29DTHbJcm00E5nQTFeTtyZH3H5ycydQ5A=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
Expand Down
6 changes: 3 additions & 3 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func configure(version string, p *schema.Provider) func(context.Context, *schema
ba_bearer_token := schema.Get("ba_bearer_token").(string)
ba_api_uri := schema.Get("ba_api_uri").(string)
// set our meta to be a new api.API
// this can be turned into concrete cba_api_uri := schema.Get("ba_api_uri").(string)lients
// this can be turned into concrete clients
// by
// api.BuildAPI(meta).ClusterClient()
// or
Expand All @@ -94,8 +94,8 @@ func configure(version string, p *schema.Provider) func(context.Context, *schema
if ba_bearer_token == "" {
diags = append(diags, diagv2.Diagnostic{
Severity: diagv2.Error,
Summary: "Unable to find ba_nearer_token",
Detail: "ba_nearer_token cannot be an empty string"})
Summary: "Unable to find ba_bearer_token",
Detail: "ba_bearer_token cannot be an empty string"})
return nil, diags
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package provider

import (
"fmt"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"fmt"
"os"
"testing"
)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d671726

Please sign in to comment.