FIX: Rename DefaultRoot to DefaultMountSpecPath

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-04-07 14:11:52 +02:00
parent b7d130e151
commit 26d2873bb2
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ func NewExperimentalModifier(logger *logrus.Logger, cfg *config.Config, ociSpec
}
d = legacyDiscoverer
case "csv":
csvFiles, err := csv.GetFileList(csv.DefaultRoot)
csvFiles, err := csv.GetFileList(csv.DefaultMountSpecPath)
if err != nil {
return nil, fmt.Errorf("failed to get list of CSV files: %v", err)
}

View File

@ -29,8 +29,8 @@ import (
)
const (
// DefaultRoot is default location of CSV files that define the modifications required to the OCI spec
DefaultRoot = "/etc/nvidia-container-runtime/host-files-for-container.d"
// DefaultMountSpecPath is default location of CSV files that define the modifications required to the OCI spec
DefaultMountSpecPath = "/etc/nvidia-container-runtime/host-files-for-container.d"
)
// GetFileList returns the (non-recursive) list of CSV files in the specified