summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-27 13:22:56 -0400
committerGitHub <noreply@github.com>2021-08-27 13:22:56 -0400
commit7752c73e477e4dffbd0a876b5c3711bd78754da1 (patch)
tree1dc3a36e877c5c8334f473180b7c4c6ee962550c
parentd09259a1a754ab08c74b13272882a89b5c736e88 (diff)
parent85846b633cc43b18857c943eadd446071f7c04cc (diff)
downloadpodman-7752c73e477e4dffbd0a876b5c3711bd78754da1.tar.gz
podman-7752c73e477e4dffbd0a876b5c3711bd78754da1.tar.bz2
podman-7752c73e477e4dffbd0a876b5c3711bd78754da1.zip
Merge pull request #11341 from baude/v3.3errorcompare
change error comparison for exec.ErrNotFound
-rw-r--r--pkg/machine/qemu/machine.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 284ea1d7f..646c84aba 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -608,7 +608,7 @@ func (v *MachineVM) startHostNetworking() error {
// MacOS does not have /usr/libexec so we look in the executable
// paths.
binary, err := exec.LookPath(machine.ForwarderBinaryName)
- if errors.Cause(err) == exec.ErrNotFound {
+ if errors.Is(err, exec.ErrNotFound) {
// Nothing was found, so now check /usr/libexec, else error out
binary = filepath.Join("/usr/libexec/podman/", machine.ForwarderBinaryName)
if _, err := os.Stat(binary); err != nil {