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 /gcp | |
| parent | 9eb3469a26a797e3a79788e6ed9d93fb598f4f8e (diff) | |
Prefer env.Getenv to os.Getenv
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'gcp')
| -rw-r--r-- | gcp/meta.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcp/meta.go b/gcp/meta.go index 2ba8cf92..9c74d5de 100644 --- a/gcp/meta.go +++ b/gcp/meta.go @@ -3,7 +3,6 @@ package gcp import ( "io/ioutil" "net/http" - "os" "strconv" "strings" "sync" @@ -33,7 +32,7 @@ type ClientOptions struct { // ... but cannot use in vault/auth.go as different strconv.Atoi error handling func GetClientOptions() ClientOptions { coInit.Do(func() { - timeout := os.Getenv("GCP_TIMEOUT") + timeout := env.Getenv("GCP_TIMEOUT") if timeout == "" { timeout = "500" } |
