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 %}