mirror of
https://github.com/containers/podman.git
synced 2025-07-04 18:27:33 +08:00
libpod: rootlessNetNs.Cleanup() fix error message
The wrong error was logged. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user