summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-03 12:51:20 +0200
committerGitHub <noreply@github.com>2021-09-03 12:51:20 +0200
commitaf58cb15d2aa46609fc7231647af09f808ba6c1c (patch)
treedf43517654ffcdc14336981717772af9ade5b9d8 /pkg/machine/qemu
parent0f49678746c27a64bd9a8bb023a77624190685b0 (diff)
parent90998176d9e8cf38453f1d9d420ca5628abbb140 (diff)
downloadpodman-af58cb15d2aa46609fc7231647af09f808ba6c1c.tar.gz
podman-af58cb15d2aa46609fc7231647af09f808ba6c1c.tar.bz2
podman-af58cb15d2aa46609fc7231647af09f808ba6c1c.zip
Merge pull request #11428 from guillaumerose/missingcheck
machine: always check error of net.Dial, even after last try
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 38a16c3ef..dc7703724 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -278,6 +278,9 @@ func (v *MachineVM) Start(name string, _ machine.StartOptions) error {
time.Sleep(wait)
wait++
}
+ if err != nil {
+ return err
+ }
fd, err := qemuSocketConn.(*net.UnixConn).File()
if err != nil {