mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Parse CODER_GITAUTH_N_NO_REFRESH env var value instead of key (#7051)
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user