use for loop instead of jinja filter

This commit is contained in:
Robert Kaussow 2020-03-08 22:15:59 +01:00
parent 1cddb441a6
commit 8504e7f349
2 changed files with 10 additions and 4 deletions

View File

@ -4,10 +4,13 @@
{% if meta | deep_get(meta, "dependencies.value") %}
{% if meta.dependencies.value is mapping %}
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
{% set deps = meta.dependencies.value.dependencies %}
{% else %}
{{ meta.dependencies.value | to_nice_yaml(indent=0) }}
{% set deps = meta.dependencies.value %}
{% endif %}
{% for item in deps %}
* {{ item }}
{% endfor %}
{% else %}
None.
{% endif %}

View File

@ -4,10 +4,13 @@
{% if meta | deep_get(meta, "dependencies.value") %}
{% if meta.dependencies.value is mapping %}
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
{% set deps = meta.dependencies.value.dependencies %}
{% else %}
{{ meta.dependencies.value | to_nice_yaml(indent=0) }}
{% set deps = meta.dependencies.value %}
{% endif %}
{% for item in deps %}
* {{ item }}
{% endfor %}
{% else %}
None.
{% endif %}