Do not set the network config dir to cni plugin dir

I do not know why this code was added but it is wrong. We should never
use a plugin dir as config dir. Also this will fail for netavark. The
correct default will be set in c/common so podman should not touch it.

[NO NEW TESTS NEEDED]

Ref #13183

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2022-02-09 15:51:57 +01:00
parent eb0a0db318
commit 3762946e63
No known key found for this signature in database
GPG key ID: EB145DD938A3CAF2

View file

@ -81,11 +81,6 @@ func newPodmanConfig() {
mode = entities.TunnelMode
}
cfg.Network.NetworkConfigDir = cfg.Network.CNIPluginDirs[0]
if rootless.IsRootless() {
cfg.Network.NetworkConfigDir = ""
}
podmanOptions = entities.PodmanConfig{Config: cfg, EngineMode: mode}
}