summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-02-09 15:51:57 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-02-09 16:18:21 +0100
commit3762946e63866744be01e49702d3cdac59f74e38 (patch)
tree1ea97c400d8e4429330e77f29cc230ea12a68d21
parenteb0a0db318a988af9ed70f3cc3a68f3b2bf2aa93 (diff)
downloadpodman-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>
-rw-r--r--cmd/podman/registry/config.go5
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}
}