diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-01-11 10:10:46 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-01-11 10:10:46 -0500 |
commit | 240e5789d409d82453b72f87862f7e71efa381e4 (patch) | |
tree | 32aa610ce49cf9d84d3ba1ca93bc48c65be6addd /libpod/runtime.go | |
parent | 5bc4d1d315b69a7aff60b049434e716eaccdeb05 (diff) | |
download | podman-240e5789d409d82453b72f87862f7e71efa381e4.tar.gz podman-240e5789d409d82453b72f87862f7e71efa381e4.tar.bz2 podman-240e5789d409d82453b72f87862f7e71efa381e4.zip |
Update CNI plugin directories to search default location as well
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r-- | libpod/runtime.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index aed6acd86..d0aa481cf 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -51,7 +51,7 @@ type RuntimeConfig struct { MaxLogSize int64 NoPivotRoot bool CNIConfigDir string - CNIPluginDir string + CNIPluginDir []string } var ( @@ -73,7 +73,7 @@ var ( MaxLogSize: -1, NoPivotRoot: false, CNIConfigDir: "/etc/cni/net.d/", - CNIPluginDir: "/usr/libexec/cni", + CNIPluginDir: []string{"/usr/libexec/cni", "/opt/cni/bin"}, } ) @@ -173,7 +173,7 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) { } // Set up the CNI net plugin - netPlugin, err := ocicni.InitCNI(runtime.config.CNIConfigDir, runtime.config.CNIPluginDir) + netPlugin, err := ocicni.InitCNI(runtime.config.CNIConfigDir, runtime.config.CNIPluginDir...) if err != nil { return nil, errors.Wrapf(err, "error configuring CNI network plugin") } |