Skip to content

Commit be4b045

Browse files
julianKatzcemakd
authored andcommitted
Remove now unnecessary corp-helper when running from cloudtop
1 parent 170e24b commit be4b045

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/remote/instance.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (i *InstanceInfo) CreateOrGetInstance(localSSDCount int) error {
235235
}
236236

237237
if i.cfg.CloudtopHost {
238-
output, err := exec.Command("gcloud", "compute", "ssh", i.cfg.Name, "--zone", i.cfg.Zone, "--project", i.cfg.Project, "--", "-o", "ProxyCommand=corp-ssh-helper %h %p", "--", "echo").CombinedOutput()
238+
output, err := exec.Command("gcloud", "compute", "ssh", i.cfg.Name, "--zone", i.cfg.Zone, "--project", i.cfg.Project).CombinedOutput()
239239
if err != nil {
240240
klog.Errorf("Failed to bootstrap ssh (%v): %s", err, string(output))
241241
return false, nil
@@ -257,9 +257,8 @@ func (i *InstanceInfo) CreateOrGetInstance(localSSDCount int) error {
257257
return true, nil
258258
})
259259

260-
// If instance didn't reach running state in time, return with error now.
261260
if err != nil {
262-
return err
261+
return fmt.Errorf("instance %v did not reach running state in time: %v", i.cfg.Name, err.Error())
263262
}
264263

265264
// Instance reached running state in time, make sure that cloud-init is complete

0 commit comments

Comments
 (0)