Skip to content

Commit

Permalink
Missed using the parseutil for parsing a Bool (#22438)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wilson authored Aug 18, 2023
1 parent 9bb921f commit fc71469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vault/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
"sync/atomic"
"time"

"github.com/hashicorp/go-secure-stdlib/parseutil"

"github.com/armon/go-metrics"
"github.com/hashicorp/errwrap"
log "github.com/hashicorp/go-hclog"
Expand Down Expand Up @@ -2363,7 +2365,7 @@ func (s standardUnsealStrategy) unseal(ctx context.Context, logger log.Logger, c
}
} else {
var err error
disableEventLogger, err := strconv.ParseBool(os.Getenv(featureFlagDisableEventLogger))
disableEventLogger, err := parseutil.ParseBool(os.Getenv(featureFlagDisableEventLogger))
if err != nil {
return fmt.Errorf("unable to parse feature flag: %q: %w", featureFlagDisableEventLogger, err)
}
Expand Down

0 comments on commit fc71469

Please sign in to comment.