aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vmimpl/util.go')
-rw-r--r--vm/vmimpl/util.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vmimpl/util.go b/vm/vmimpl/util.go
index 729e78de6..a0e3ce841 100644
--- a/vm/vmimpl/util.go
+++ b/vm/vmimpl/util.go
@@ -58,13 +58,15 @@ func WaitForSSH(timeout time.Duration, opts SSHOptions, OS string, stop chan err
}
if time.Since(startTime) > timeout {
return &osutil.VerboseError{
- Err: fmt.Errorf("can't ssh into the instance"),
+ Err: ErrCantSSH,
Output: []byte(err.Error()),
}
}
}
}
+var ErrCantSSH = fmt.Errorf("can't ssh into the instance")
+
func SSHArgs(debug bool, sshKey string, port int, systemSSHCfg bool) []string {
return sshArgs(debug, sshKey, "-p", port, 0, systemSSHCfg)
}