瀏覽代碼

Merge pull request #1130 from gravitl/bugfix_v0.14.1_slash

remove slash
Alex Feiszli 3 年之前
父節點
當前提交
e6e686b8b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netclient/functions/common.go

+ 1 - 1
netclient/functions/common.go

@@ -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)
 	}