diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2021-01-17 19:24:21 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2021-01-17 19:24:21 -0500 |
| commit | e767898ad2e1b6f3d5cbd613eb1cb6e4cd501ff3 (patch) | |
| tree | fbb790a2bf131c7f67357cbd1398c97a9da1aa3a /vault | |
| parent | 9eb3469a26a797e3a79788e6ed9d93fb598f4f8e (diff) | |
Prefer env.Getenv to os.Getenv
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'vault')
| -rw-r--r-- | vault/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vault/auth.go b/vault/auth.go index 0c82450c..83b31ce8 100644 --- a/vault/auth.go +++ b/vault/auth.go @@ -200,7 +200,7 @@ func createEc2LoginVars(nonce string) (map[string]interface{}, error) { } opts := aws.ClientOptions{ - Timeout: time.Duration(conv.MustAtoi(os.Getenv("AWS_TIMEOUT"))) * time.Millisecond, + Timeout: time.Duration(conv.MustAtoi(env.Getenv("AWS_TIMEOUT"))) * time.Millisecond, } meta := aws.NewEc2Meta(opts) |
