Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kgibson-spotnana committed Mar 19, 2024
1 parent fad8841 commit 7551988
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/groups_lookup_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7551988

Please sign in to comment.