mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +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.WithAutoRefresh(false),
|
||||
)
|
||||
if errs := registry.GetErrors(); len(errs) > 0 {
|
||||
m.logger.Debugf("The following errors were triggered when creating the CDI registry: %v", errs)
|
||||
if err := registry.Refresh(); err != nil {
|
||||
m.logger.Debugf("The following error was triggered when refreshing the CDI registry: %v", err)
|
||||
}
|
||||
|
||||
devices := m.devices
|
||||
|
Loading…
Reference in New Issue
Block a user