From 15d190983fbeb86090c14f51ed05177358f66d79 Mon Sep 17 00:00:00 2001 From: Serge Hartmann Date: Thu, 11 Jan 2024 11:49:35 +0100 Subject: [PATCH] Fix crio_version version comparison (#10780) Signed-off-by: serge Hartmann --- roles/container-engine/cri-o/templates/crio.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/container-engine/cri-o/templates/crio.conf.j2 b/roles/container-engine/cri-o/templates/crio.conf.j2 index 81d5a421e0b..6f9b84f14eb 100644 --- a/roles/container-engine/cri-o/templates/crio.conf.j2 +++ b/roles/container-engine/cri-o/templates/crio.conf.j2 @@ -382,7 +382,7 @@ enable_metrics = {{ crio_enable_metrics | bool | lower }} # The port on which the metrics server will listen. metrics_port = {{ crio_metrics_port }} -{% if nri_enabled and crio_version >= v1.26.0 %} +{% if nri_enabled and crio_version is version('v1.26.0', operator='>=') %} [crio.nri] enable_nri=true