Skip to content

Commit cbb17a8

Browse files
committed
fix: move Web instantiation
to an if block to avoid booting up chromium every time
1 parent 30b8b50 commit cbb17a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME := aws-cli-auth
2-
VERSION := v0.6.0
2+
VERSION := v0.6.1
33
REVISION := $(shell git rev-parse --short HEAD)
44

55
LDFLAGS := -ldflags="-s -w -X \"github.com/dnitsch/aws-cli-auth/cmd.Version=$(VERSION)\" -X \"github.com/dnitsch/aws-cli-auth/cmd.Revision=$(REVISION)\" -extldflags -static"

internal/auth/saml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ func GetSamlCreds(conf config.SamlConfig) {
1515
util.Exit(nil)
1616
}
1717

18-
web := web.New()
1918
secretStore := util.NewSecretStore(conf.BaseConfig.Role)
2019
var awsCreds *util.AWSCredentials
2120

@@ -27,6 +26,7 @@ func GetSamlCreds(conf config.SamlConfig) {
2726
}
2827

2928
if !util.IsValid(awsCreds) || err != nil {
29+
web := web.New()
3030

3131
t, err := web.GetSamlLogin(conf)
3232
if err != nil {

0 commit comments

Comments
 (0)