fix: Parse CODER_GITAUTH_N_NO_REFRESH env var value instead of key (#7051)

This commit is contained in:
Kevin Conley
2023-04-11 09:18:17 -05:00
committed by GitHub
parent 3b10e89047
commit 4dd5d79412
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ func ReadGitAuthProvidersFromEnv(environ []string) ([]codersdk.GitAuthConfig, er
case "REGEX":
provider.Regex = v.Value
case "NO_REFRESH":
b, err := strconv.ParseBool(key)
b, err := strconv.ParseBool(v.Value)
if err != nil {
return nil, xerrors.Errorf("parse bool: %s", v.Value)
}