mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
remove slash
This commit is contained in:
@@ -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
|
// Authenticate authenticates with api to permit subsequent interactions with the api
|
||||||
func Authenticate(cfg *config.ClientConfig) (string, error) {
|
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 {
|
if err != nil {
|
||||||
return "", fmt.Errorf("could not read secrets file %w", err)
|
return "", fmt.Errorf("could not read secrets file %w", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user