Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MovieStoreGuy committed Nov 13, 2024
1 parent 028cea5 commit 516431d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/definition/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func New() *schema.Provider {
Type: schema.TypeString,
Optional: true,
ConflictsWith: []string{"auth_token"},
Description: "Required if the user is configured to be part of multiple organisations",
Description: "Required if the user is configured to be part of multiple organizations",
},
},
ResourcesMap: map[string]*schema.Resource{
Expand Down
6 changes: 3 additions & 3 deletions internal/providermeta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ func (m *Meta) LoadSessionToken(ctx context.Context) (string, error) {
return resp.AccessToken, nil
}

func (s *Meta) Validate() (errs error) {
if s.AuthToken == "" && (s.Email == "" && s.Password == "") {
func (m *Meta) Validate() (errs error) {
if m.AuthToken == "" && (m.Email == "" && m.Password == "") {
errs = multierr.Append(errs, errors.New("missing auth token or email and password"))
}
if s.APIURL == "" {
if m.APIURL == "" {
errs = multierr.Append(errs, errors.New("api url is not set"))
}
return errs
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package main

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"

"github.com/splunk-terraform/terraform-provider-signalfx/signalfx"
)

Expand Down

0 comments on commit 516431d

Please sign in to comment.