From 37e3f7d6d011c63f3f8be4931041701ff915409f Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sat, 16 Sep 2023 19:59:39 +0800 Subject: [PATCH] d --- features/cm/ne.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/cm/ne.go b/features/cm/ne.go index 27424eb5..9715d462 100644 --- a/features/cm/ne.go +++ b/features/cm/ne.go @@ -592,10 +592,10 @@ func ImportCmToNF(w http.ResponseWriter, r *http.Request) { var scpZipCmd string ipType := global.ParseIPAddr(neInfo.Ip) if ipType == global.IsIPv4 { - scpZipCmd = fmt.Sprintf("scp -r %s -d %s@%s:%s", filePath, + scpZipCmd = fmt.Sprintf("scp -r %s %s@%s:%s", filePath, config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir) } else { - scpZipCmd = fmt.Sprintf("scp -r %s -d %s@[%s]:%s", filePath, + scpZipCmd = fmt.Sprintf("scp -r %s %s@[%s]:%s", filePath, config.GetYamlConfig().NE.User, neInfo.Ip, config.GetYamlConfig().NE.ScpDir) } neFilePath := config.GetYamlConfig().NE.ScpDir + "/" + fileName