Handle empty devices in OCI spec, if OCI spec has an empty linux.resource.devices entry aka None the CDI injection will fail since we are checking for Some(devices).
If devices is None create an vector with the new device and set it in the resources section.
Handle empty devices in OCI spec, if OCI spec has an empty linux.resource.devices entry aka None the CDI injection will fail since we are checking for Some(devices).
If devices is None create an vector with the new device and set it in the resources section.
With
we get
Without the patch we got