diff options
author | Evan Lezar <elezar@nvidia.com> | 2022-05-03 17:24:15 +0200 |
---|---|---|
committer | Evan Lezar <elezar@nvidia.com> | 2022-08-10 10:49:42 +0200 |
commit | 658960c97b0dca06cb81472bc9bd7ff820fc56cf (patch) | |
tree | 0bfd231b688acf3c32ae6dae07ef22b9a26ca832 /libpod | |
parent | c33dc90ace724f920c14e41769ce237f5c5d14ec (diff) | |
download | podman-658960c97b0dca06cb81472bc9bd7ff820fc56cf.tar.gz podman-658960c97b0dca06cb81472bc9bd7ff820fc56cf.tar.bz2 podman-658960c97b0dca06cb81472bc9bd7ff820fc56cf.zip |
build(deps) bump CDI dependency from 0.4.0 to 0.5.0
bump github.com/container-orchestrated-devices/container-device-interface from 0.4.0 to 0.5.0
This requires that the cdi.Registry be instantiated with AutoRefresh disabled for CLI clients.
[NO NEW TESTS NEEDED]
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_internal_linux.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index a131ab367..64e0af284 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -872,9 +872,11 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) { // Warning: CDI may alter g.Config in place. if len(c.config.CDIDevices) > 0 { - registry := cdi.GetRegistry() - if errs := registry.GetErrors(); len(errs) > 0 { - logrus.Debugf("The following errors were triggered when creating the CDI registry: %v", errs) + registry := cdi.GetRegistry( + cdi.WithAutoRefresh(false), + ) + if err := registry.Refresh(); err != nil { + logrus.Debugf("The following error was triggered when refreshing the CDI registry: %v", err) } _, err := registry.InjectDevices(g.Config, c.config.CDIDevices...) if err != nil { |