Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
542f229b
Commit
542f229b
authored
3 years ago
by
Calvin Leung Huang
Browse files
Options
Download
Email Patches
Plain Diff
use parseutil.ParseBool instead
parent
f48b6a0e
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/credential/aws/cli.go
+2
-2
builtin/credential/aws/cli.go
with
2 additions
and
2 deletions
+2
-2
builtin/credential/aws/cli.go
+
2
-
2
View file @
542f229b
...
...
@@ -2,11 +2,11 @@ package awsauth
import
(
"fmt"
"strconv"
"strings"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-secure-stdlib/awsutil"
"github.com/hashicorp/go-secure-stdlib/parseutil"
"github.com/hashicorp/vault/api"
)
...
...
@@ -47,7 +47,7 @@ func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (*api.Secret, erro
var
autoDetectRegion
bool
if
autoDetectRaw
,
ok
:=
m
[
"auto_detect_region"
];
ok
{
var
err
error
autoDetectRegion
,
err
=
strconv
.
ParseBool
(
autoDetectRaw
)
autoDetectRegion
,
err
=
parseutil
.
ParseBool
(
autoDetectRaw
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"failed to parse auto_detect: %w"
,
err
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help