mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40:43 +00:00
Merge pull request #9 from xoxys/fix-meta-deps
use for loop instead of jinja filter
This commit is contained in:
commit
ce216b41dc
6
.github/settings.yml
vendored
6
.github/settings.yml
vendored
@ -54,9 +54,7 @@ branches:
|
||||
strict: true
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
enforce_admins: false
|
||||
restrictions:
|
||||
users: []
|
||||
teams: []
|
||||
enforce_admins: null
|
||||
restrictions: null
|
||||
|
||||
...
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user