Skip to content

Commit

Permalink
Fix #990
Browse files Browse the repository at this point in the history
The wrong variable for the gateway was being used to lookup
authentication details when the OPENFAAS_URL environment
variable was being set to supply an override.

cc @welteki @nitishkumar71

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Nov 29, 2023
1 parent 2388ada commit 2ee2f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func GetDefaultSDKClient() (*sdk.Client, error) {
httpClient.Transport = transport
}

clientAuth, err := proxy.NewCLIAuth(token, gateway)
clientAuth, err := proxy.NewCLIAuth(token, gatewayAddress)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2ee2f27

Please sign in to comment.