Merge pull request #8733 from fidencio/topic/fix-shim-check-for-snapshotter-configration

kata-deploy: Fix shim check for snapshotter configuration
This commit is contained in:
Fabiano Fidêncio
2023-12-27 03:30:53 -03:00
committed by GitHub

View File

@@ -377,7 +377,7 @@ function configure_containerd_runtime() {
fi
value="${m#*$snapshotters_delimiter}"
tomlq -i -t $(printf '%s.snapshotter=%s' ${shim} ${value}) ${containerd_conf_file}
tomlq -i -t $(printf '%s.snapshotter="%s"' ${runtime_table} ${value}) ${containerd_conf_file}
break
done
fi
@@ -481,7 +481,7 @@ function snapshotter_handler_mapping_validation_check() {
die "The snapshotter must follow the \"shim:snapshotter,shim:snapshotter,...\" format, but at least one snapshotter is empty"
fi
if ! grep -q " $shim " <<< " $shims "; then
if ! grep -q " $shim " <<< " $SHIMS "; then
die "\"$shim\" is not part of \"$SHIMS\""
fi