Use of constant pkg/network/config.go#CNIConfigDir #6212
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
The files pkg/network/files.go and pkg/api/handlers/libpod/networks.go still make use of the static constant CNIConfigDir in pkg/network/config.go.
The resulting issue appears when the cni config dir is changed in libpod.conf. While
network create
andnetwork ls
use pkg/domain/infra/abi/network.go#getCNIConfDir,inspect
andremove
use pkg/network/files.go#GetCNIConfigPathByName (forinspect
indirectly via ReadRawCNIConfByName).I will fix this by replacing the use of the constant in GetCNIConfigPathByName by a call to getCNIConfDir.
The text was updated successfully, but these errors were encountered: