aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-05-15 11:35:13 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-05-15 17:17:27 +0200
commit71b00cfbfc5c749ff257952d9bd9e7cdbc7c654b (patch)
tree9f4a038942a316424b59349ab5c541bc29d2a842 /vm
parentc21db32085ac574c19fe0cd1b27aaffd781ea671 (diff)
vm/gce: collect verbose scp output
We're getting sporadic "failed to copy binary to VM" errors, but we lack the debug info to understand the nature of the problem. Always collect scp debug info for gce VMs.
Diffstat (limited to 'vm')
-rw-r--r--vm/gce/gce.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index 458b6ed0f..208cce612 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -217,7 +217,7 @@ func (inst *instance) Forward(port int) (string, error) {
func (inst *instance) Copy(hostSrc string) (string, error) {
vmDst := "./" + filepath.Base(hostSrc)
- args := append(vmimpl.SCPArgs(inst.debug, inst.sshKey, 22), hostSrc, inst.sshUser+"@"+inst.ip+":"+vmDst)
+ args := append(vmimpl.SCPArgs(true, inst.sshKey, 22), hostSrc, inst.sshUser+"@"+inst.ip+":"+vmDst)
if err := runCmd(inst.debug, "scp", args...); err != nil {
return "", err
}