mirror of https://github.com/containers/podman.git
libpod: rootlessNetNs.Cleanup() fix error message
The wrong error was logged. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
3c995c2c52
commit
4f93a6eee4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue