server: respect ocid.network.plugin_dir setting
Previously ocicni did not have support for setting the plugin directory. Now that it has grown support for it, use it to actually respect the setting a user has provided for ocid.network.* options. Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
b1685800dd
commit
d5abfa1ecf
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ func New(config *Config) (*Server, error) {
|
||||||
}
|
}
|
||||||
sandboxes := make(map[string]*sandbox)
|
sandboxes := make(map[string]*sandbox)
|
||||||
containers := oci.NewMemoryStore()
|
containers := oci.NewMemoryStore()
|
||||||
netPlugin, err := ocicni.InitCNI(config.NetworkDir)
|
netPlugin, err := ocicni.InitCNI(config.NetworkDir, config.PluginDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue