From b1e1a5fa99e29b3ffc2bc48d11b163e28cbb7744 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Wed, 12 Jul 2023 09:57:41 +0000 Subject: Fix status base.html Fix error with template generation for k8s status tests on some conditions Issue-ID: INT-2246 Signed-off-by: Michal Jagiello Change-Id: I18d9c4b81ea32d95a8d9a16fdaf1c0a17b0689f4 --- src/onaptests/templates/status/base.html.j2 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/onaptests/templates/status/base.html.j2 b/src/onaptests/templates/status/base.html.j2 index d46782d..1a49e05 100644 --- a/src/onaptests/templates/status/base.html.j2 +++ b/src/onaptests/templates/status/base.html.j2 @@ -97,11 +97,7 @@ is-danger {% if k8s.spec.selector.match_labels %} {{ key_value_description_list('Selector', k8s.spec.selector.match_labels) | indent(width=6) }} {% else %} - {% if k8s.spec.selector.items %} - {{ key_value_description_list('Selector', k8s.spec.selector) | indent(width=6) }} - {% else %} - {{ key_value_description_list('Selector', dict()) | indent(width=6) }} - {% endif %} + {{ key_value_description_list('Selector', k8s.spec.selector.to_dict()) | indent(width=6) }} {% endif %} {% endif %} {% if k8s.phase %} -- cgit 1.2.3-korg