mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 23:07:55 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user