From d812087d11c2e6273e796c05ae7e6ea71f0b2df6 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 12 Apr 2023 20:35:13 +0200 Subject: [PATCH] libpod: rootlessNetNs.Cleanup() fix error message The wrong error was logged. Signed-off-by: Paul Holzinger --- libpod/networking_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/networking_common.go b/libpod/networking_common.go index a569e9eaed..24165e1598 100644 --- a/libpod/networking_common.go +++ b/libpod/networking_common.go @@ -115,7 +115,7 @@ func (r *Runtime) teardownNetworkBackend(ns string, opts types.NetworkOptions) e // execute the network setup in the rootless net ns err = rootlessNetNS.Do(tearDownPod) if cerr := rootlessNetNS.Cleanup(r); cerr != nil { - logrus.WithError(err).Error("failed to clean up rootless netns") + logrus.WithError(cerr).Error("failed to clean up rootless netns") } rootlessNetNS.Lock.Unlock() } else {