Merge pull request #1132 from gravitl/v0.14.1

V0.14.1
This commit is contained in:
Alex Feiszli 2022-05-24 16:44:07 -04:00 committed by GitHub
commit 06ea966cd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,7 +346,7 @@ func API(data any, method, url, authorization string) (*http.Response, error) {
// Authenticate authenticates with api to permit subsequent interactions with the api
func Authenticate(cfg *config.ClientConfig) (string, error) {
pass, err := os.ReadFile(ncutils.GetNetclientPathSpecific() + "/secret-" + cfg.Network)
pass, err := os.ReadFile(ncutils.GetNetclientPathSpecific() + "secret-" + cfg.Network)
if err != nil {
return "", fmt.Errorf("could not read secrets file %w", err)
}