aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-07-12 09:57:41 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2023-07-12 09:57:41 +0000
commitb1e1a5fa99e29b3ffc2bc48d11b163e28cbb7744 (patch)
tree987dfc125f7e1953414e0edb60c2b139ce2b5ddb /src
parent99aab747131bf8ab27a7db0d7b2d9f8f85adc861 (diff)
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 <michal.jagiello@t-mobile.pl> Change-Id: I18d9c4b81ea32d95a8d9a16fdaf1c0a17b0689f4
Diffstat (limited to 'src')
-rw-r--r--src/onaptests/templates/status/base.html.j26
1 files changed, 1 insertions, 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 %}