diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-03-24 13:57:33 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-03-28 12:49:55 +0200 |
commit | 38bd4010cfde804bb07a2eef32d28a332027a173 (patch) | |
tree | 55195aa9a194bb66f6a553b8fb9a7d7318cae228 /libpod | |
parent | 0ebf0bc56091d305ac064c59e20289d47bf56437 (diff) | |
download | podman-38bd4010cfde804bb07a2eef32d28a332027a173.tar.gz podman-38bd4010cfde804bb07a2eef32d28a332027a173.tar.bz2 podman-38bd4010cfde804bb07a2eef32d28a332027a173.zip |
network setup: fail if slirp4netns is not installed
I do not see why we should only log an error. If slirp4netns is
requested but not installed we should error.
[NO NEW TESTS NEEDED]
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/networking_slirp4netns.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/networking_slirp4netns.go b/libpod/networking_slirp4netns.go index b0247dc5c..3f6c4bef2 100644 --- a/libpod/networking_slirp4netns.go +++ b/libpod/networking_slirp4netns.go @@ -216,8 +216,7 @@ func (r *Runtime) setupSlirp4netns(ctr *Container, netns ns.NetNS) error { var err error path, err = exec.LookPath("slirp4netns") if err != nil { - logrus.Errorf("Could not find slirp4netns, the network namespace won't be configured: %v", err) - return nil + return fmt.Errorf("could not find slirp4netns, the network namespace can't be configured: %w", err) } } |