Properly pass configSearchPaths to a Driver constructor

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
This commit is contained in:
Alexander Mikhalitsyn 2025-01-07 19:11:01 +01:00 committed by Evan Lezar
parent 23b2970406
commit 4237556078
No known key found for this signature in database

View File

@ -97,6 +97,7 @@ func New(opts ...Option) (Interface, error) {
root.WithLogger(l.logger),
root.WithDriverRoot(l.driverRoot),
root.WithLibrarySearchPaths(l.librarySearchPaths...),
root.WithConfigSearchPaths(l.configSearchPaths...),
)
if l.nvmllib == nil {
var nvmlOpts []nvml.LibraryOption