diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-02-09 15:51:57 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-02-09 16:18:21 +0100 |
commit | 3762946e63866744be01e49702d3cdac59f74e38 (patch) | |
tree | 1ea97c400d8e4429330e77f29cc230ea12a68d21 /cmd | |
parent | eb0a0db318a988af9ed70f3cc3a68f3b2bf2aa93 (diff) | |
download | podman-3762946e63866744be01e49702d3cdac59f74e38.tar.gz podman-3762946e63866744be01e49702d3cdac59f74e38.tar.bz2 podman-3762946e63866744be01e49702d3cdac59f74e38.zip |
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/registry/config.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/podman/registry/config.go b/cmd/podman/registry/config.go index 15bb7aee0..b5c9b359c 100644 --- a/cmd/podman/registry/config.go +++ b/cmd/podman/registry/config.go @@ -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} } |