From ce43ddbdc854de322dc64ae0e7ed8c18bceeda67 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Van Kim <46667187+khanhngobackend@users.noreply.github.com> Date: Wed, 15 Nov 2023 22:06:42 +0700 Subject: [PATCH] fix: invalid version check in containerd jinja-template config (#10620) --- roles/container-engine/containerd/templates/config.toml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index fc3ea477faa..79eeadda1ba 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -78,7 +78,7 @@ oom_score = {{ containerd_oom_score }} {% endif %} {% endfor %} -{% if nri_enabled and containerd_version >= 1.7.0 %} +{% if nri_enabled and containerd_version is version('1.7.0', '>=') %} [plugins."io.containerd.nri.v1.nri"] disable = false {% endif %}