1
0

Supress minor scp errors

This commit is contained in:
dump_stack() 2018-10-06 12:46:11 +00:00
parent 4e898b421a
commit 865de3b1a9

View File

@ -270,7 +270,9 @@ func (q *QemuSystem) CopyFile(user, localPath, remotePath string) (err error) {
addr := addrPort[0] addr := addrPort[0]
port := addrPort[1] port := addrPort[1]
cmd := exec.Command("scp", "-P", port, "-o", "StrictHostKeyChecking=no", cmd := exec.Command("scp", "-P", port,
"-o", "StrictHostKeyChecking=no",
"-o", "LogLevel=error",
localPath, user+"@"+addr+":"+remotePath) localPath, user+"@"+addr+":"+remotePath)
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()
if err != nil { if err != nil {