We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CommandAPIPath
/
1 parent 9e62e2a commit 45023c9Copy full SHA for 45023c9
auth_providers/auth_core.go
@@ -270,11 +270,12 @@ func (c *CommandAuthConfig) ValidateAuthConfig() error {
270
}
271
if c.CommandAPIPath == "" {
272
if apiPath, ok := os.LookupEnv(EnvKeyfactorAPIPath); ok {
273
- c.CommandAPIPath = strings.Trim(apiPath, "/")
+ c.CommandAPIPath = apiPath
274
} else {
275
c.CommandAPIPath = DefaultCommandAPIPath
276
277
278
+ c.CommandAPIPath = strings.Trim(c.CommandAPIPath, "/")
279
if c.HttpClientTimeout <= 0 {
280
if timeout, ok := os.LookupEnv(EnvKeyfactorClientTimeout); ok {
281
configTimeout, tErr := strconv.Atoi(timeout)
0 commit comments