From bc37b97c73a8a24bfd926b0edc9b6fce9cf12735 Mon Sep 17 00:00:00 2001 From: Evan Lezar <7723350-elezar@users.noreply.gitlab.com> Date: Thu, 16 Feb 2023 13:58:43 +0000 Subject: [PATCH] Merge branch 'fix-nvidia-ctk-path' into 'main' Fix issue with blank nvidia-ctk path See merge request nvidia/container-toolkit/container-toolkit!297 --- internal/discover/hooks.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/discover/hooks.go b/internal/discover/hooks.go index 708260e1..dfe98988 100644 --- a/internal/discover/hooks.go +++ b/internal/discover/hooks.go @@ -47,6 +47,9 @@ func FindNvidiaCTK(logger *logrus.Logger, nvidiaCTKPath string) string { return nvidiaCTKPath } + if nvidiaCTKPath == "" { + nvidiaCTKPath = nvidiaCTKExecutable + } logger.Debugf("Locating NVIDIA Container Toolkit CLI as %v", nvidiaCTKPath) lookup := lookup.NewExecutableLocator(logger, "") hookPath := nvidiaCTKDefaultFilePath