Skip to content

Commit

Permalink
fixes 'printf: non-constant format string in call to fmt.Errorf' lint…
Browse files Browse the repository at this point in the history
… issue
  • Loading branch information
luispresuelVenafi committed Sep 10, 2024
1 parent 56809e7 commit 1c4b148
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/terraform-provider-venafi-token.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internal/provider/credential_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package provider

import (
"context"
"errors"
"fmt"
"strconv"
"strings"
Expand Down Expand Up @@ -299,7 +300,7 @@ func getValuesMap(ctx context.Context, values string) (map[string]string, error)
if !found {
msg := fmt.Sprintf("no separator found on value: %s", item)
tflog.Info(ctx, msg)
return nil, fmt.Errorf(msg)
return nil, errors.New(msg)
}
tflog.Debug(ctx, fmt.Sprintf("credential field found: %s = %s", key, value))
dict[key] = value
Expand Down

0 comments on commit 1c4b148

Please sign in to comment.