mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Merge branch 'fix-nvidia-ctk-path' into 'main'
Fix issue with blank nvidia-ctk path See merge request nvidia/container-toolkit/container-toolkit!297
This commit is contained in:
parent
2081750bea
commit
bc37b97c73
@ -47,6 +47,9 @@ func FindNvidiaCTK(logger *logrus.Logger, nvidiaCTKPath string) string {
|
|||||||
return nvidiaCTKPath
|
return nvidiaCTKPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nvidiaCTKPath == "" {
|
||||||
|
nvidiaCTKPath = nvidiaCTKExecutable
|
||||||
|
}
|
||||||
logger.Debugf("Locating NVIDIA Container Toolkit CLI as %v", nvidiaCTKPath)
|
logger.Debugf("Locating NVIDIA Container Toolkit CLI as %v", nvidiaCTKPath)
|
||||||
lookup := lookup.NewExecutableLocator(logger, "")
|
lookup := lookup.NewExecutableLocator(logger, "")
|
||||||
hookPath := nvidiaCTKDefaultFilePath
|
hookPath := nvidiaCTKDefaultFilePath
|
||||||
|
Loading…
Reference in New Issue
Block a user