mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-12 04:25:08 +08:00
commit
06ea966cd0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue