mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-28 15:03:23 +00:00
Fix filepath.Join with single arg
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
73857eb8e3
commit
f8870b31be
@ -239,7 +239,7 @@ func newDRMDeviceFilter(logger logger.Interface, devices image.VisibleDevices, d
|
|||||||
return nil, fmt.Errorf("failed to determine DRM devices for %v: %v", busID, err)
|
return nil, fmt.Errorf("failed to determine DRM devices for %v: %v", busID, err)
|
||||||
}
|
}
|
||||||
for _, drmDeviceNode := range drmDeviceNodes {
|
for _, drmDeviceNode := range drmDeviceNodes {
|
||||||
filter[filepath.Join(drmDeviceNode)] = true
|
filter[drmDeviceNode] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,9 +128,9 @@ func getFirmwareSearchPaths(logger logger.Interface) ([]string, error) {
|
|||||||
|
|
||||||
standardPaths := []string{
|
standardPaths := []string{
|
||||||
filepath.Join("/lib/firmware/updates/", utsRelease),
|
filepath.Join("/lib/firmware/updates/", utsRelease),
|
||||||
filepath.Join("/lib/firmware/updates/"),
|
"/lib/firmware/updates/",
|
||||||
filepath.Join("/lib/firmware/", utsRelease),
|
filepath.Join("/lib/firmware/", utsRelease),
|
||||||
filepath.Join("/lib/firmware/"),
|
"/lib/firmware/",
|
||||||
}
|
}
|
||||||
|
|
||||||
return append(firmwarePaths, standardPaths...), nil
|
return append(firmwarePaths, standardPaths...), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user