Fix inconsistenty in finding cni binaries
Fixes [#46476] Signed-off-by: Abhinav Dahiya <abhinav.dahiya@coreos.com>
This commit is contained in:
parent
d9f3ea5191
commit
73555e7ce9
@ -134,7 +134,7 @@ func getDefaultCNINetwork(pluginDir, binDir, vendorCNIDirPrefix string) (*cniNet
|
|||||||
// Search for vendor-specific plugins as well as default plugins in the CNI codebase.
|
// Search for vendor-specific plugins as well as default plugins in the CNI codebase.
|
||||||
vendorDir := vendorCNIDir(vendorCNIDirPrefix, confType)
|
vendorDir := vendorCNIDir(vendorCNIDirPrefix, confType)
|
||||||
cninet := &libcni.CNIConfig{
|
cninet := &libcni.CNIConfig{
|
||||||
Path: []string{binDir, vendorDir},
|
Path: []string{vendorDir, binDir},
|
||||||
}
|
}
|
||||||
network := &cniNetwork{name: confList.Name, NetworkConfig: confList, CNIConfig: cninet}
|
network := &cniNetwork{name: confList.Name, NetworkConfig: confList, CNIConfig: cninet}
|
||||||
return network, nil
|
return network, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user