mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-03-18 10:44:10 +00:00
Using `$runtime.containerd.snapshotter` and `$runtime.crio.pullType` panics with a nil pointer error when the containerd or crio block is absent from the custom runtime definition. Let's use the `dig` function which safely traverses nested keys and returns an empty string as the default when any key in the path is missing. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>