From a9f419d91b780b66a4499dfab79d19938178834d Mon Sep 17 00:00:00 2001 From: YanniHu1996 Date: Tue, 6 Jun 2023 14:32:31 +0800 Subject: [PATCH] fix: Fixed pre-commit --- pkg/provider/provider.go | 6 +++--- pkg/provider/provider_test.go | 2 +- pkg/provider/{resource_proejct.go => resource_project.go} | 0 .../{resource_proejct_test.go => resource_project_test.go} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename pkg/provider/{resource_proejct.go => resource_project.go} (100%) rename pkg/provider/{resource_proejct_test.go => resource_project_test.go} (100%) diff --git a/pkg/provider/provider.go b/pkg/provider/provider.go index cd3476e1..4325aeb0 100644 --- a/pkg/provider/provider.go +++ b/pkg/provider/provider.go @@ -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 @@ -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 } diff --git a/pkg/provider/provider_test.go b/pkg/provider/provider_test.go index 072dd694..813a83be 100644 --- a/pkg/provider/provider_test.go +++ b/pkg/provider/provider_test.go @@ -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" ) diff --git a/pkg/provider/resource_proejct.go b/pkg/provider/resource_project.go similarity index 100% rename from pkg/provider/resource_proejct.go rename to pkg/provider/resource_project.go diff --git a/pkg/provider/resource_proejct_test.go b/pkg/provider/resource_project_test.go similarity index 100% rename from pkg/provider/resource_proejct_test.go rename to pkg/provider/resource_project_test.go