From 7551988b648f46b580c4a377a5099980d0f122a9 Mon Sep 17 00:00:00 2001 From: Kevin Gibson Date: Mon, 18 Mar 2024 21:26:27 -0700 Subject: [PATCH] linting --- go.mod | 2 +- go.sum | 1 + internal/provider/groups_lookup_data_source.go | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index c97e61f..767a223 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.5 require ( - github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240318201126-c808a5c26dc8 + github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240319010328-d110ddd05f3c github.com/hashicorp/terraform-plugin-docs v0.17.0 github.com/hashicorp/terraform-plugin-framework v1.5.0 github.com/hashicorp/terraform-plugin-go v0.20.0 diff --git a/go.sum b/go.sum index a438177..450a17b 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,7 @@ github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240318191421-d3910f0 github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240318191421-d3910f0a1bda/go.mod h1:9iUtBe/vjsO9xmFmarSdTM9BiQv9cqlwDu7yJc+bsVo= github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240318201126-c808a5c26dc8 h1:e9kALMnG3lEJfAtiPdGpODbk5i3bjf8/U3Ifpvbe8cE= github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240318201126-c808a5c26dc8/go.mod h1:9iUtBe/vjsO9xmFmarSdTM9BiQv9cqlwDu7yJc+bsVo= +github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4-0.20240319010328-d110ddd05f3c/go.mod h1:9iUtBe/vjsO9xmFmarSdTM9BiQv9cqlwDu7yJc+bsVo= github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4 h1:VC86V57q2aMNg/lxl6Nsi7wz4BJjcoIq57nUbbage0Q= github.com/Spotnana-Tech/sec-jumpcloud-client-go v1.0.4/go.mod h1:9iUtBe/vjsO9xmFmarSdTM9BiQv9cqlwDu7yJc+bsVo= github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE= diff --git a/internal/provider/groups_lookup_data_source.go b/internal/provider/groups_lookup_data_source.go index 07f0a8d..ba33037 100644 --- a/internal/provider/groups_lookup_data_source.go +++ b/internal/provider/groups_lookup_data_source.go @@ -3,7 +3,7 @@ package provider import ( "context" "fmt" - "github.com/Spotnana-Tech/sec-jumpcloud-client-go" + jumpcloud "github.com/Spotnana-Tech/sec-jumpcloud-client-go" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" @@ -110,9 +110,9 @@ func (d *jcGroupDataLookupSource) Read(ctx context.Context, req datasource.ReadR var name string var limit int //diags := req.State.Get(ctx, &state) - diags := req.Config.Get(ctx, &state) - diags = req.Config.GetAttribute(ctx, path.Root("name"), &name) - diags = req.Config.GetAttribute(ctx, path.Root("limit"), &limit) + diags := req.Config.Get(ctx, &state) //nolint:all + diags = req.Config.GetAttribute(ctx, path.Root("name"), &name) //nolint:all + diags = req.Config.GetAttribute(ctx, path.Root("limit"), &limit) //nolint:all tflog.Info(ctx, fmt.Sprintf("Request: name %s, limit %d", name, limit)) if limit == 0 { limit = 1