mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-26 13:59:45 +00:00
Merge branch 'fix-cdi-refresh' into 'main'
Ensure that CDI registry is refreshed See merge request nvidia/container-toolkit/container-toolkit!191
This commit is contained in:
commit
f9547c447a
@ -101,8 +101,8 @@ func (m cdiModifier) Modify(spec *specs.Spec) error {
|
|||||||
cdi.WithSpecDirs(m.specDirs...),
|
cdi.WithSpecDirs(m.specDirs...),
|
||||||
cdi.WithAutoRefresh(false),
|
cdi.WithAutoRefresh(false),
|
||||||
)
|
)
|
||||||
if errs := registry.GetErrors(); len(errs) > 0 {
|
if err := registry.Refresh(); err != nil {
|
||||||
m.logger.Debugf("The following errors were triggered when creating the CDI registry: %v", errs)
|
m.logger.Debugf("The following error was triggered when refreshing the CDI registry: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
devices := m.devices
|
devices := m.devices
|
||||||
|
Loading…
Reference in New Issue
Block a user