From: Michal Jagiello Date: Wed, 12 Jul 2023 09:57:41 +0000 (+0000) Subject: Fix status base.html X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b1e1a5fa99e29b3ffc2bc48d11b163e28cbb7744;p=testsuite%2Fpythonsdk-tests.git 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 --- 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 %}