mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Fix issue with blank nvidia-ctk path
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
b4ab95f00c
commit
bf6babe07e
@ -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