mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 13:50:42 +00:00
fix multiline default value template
This commit is contained in:
parent
a54e370f14
commit
844a05aea3
@ -1,5 +1,7 @@
|
||||
* BUGFIX
|
||||
* add missing default for `role_dir`
|
||||
* fix value mapping in jinja2 source dict
|
||||
* add missing exception handling for dict merge
|
||||
* fix handling of multiline default values in template
|
||||
* FEATURE
|
||||
* use explicit marker to convert annotation values to json
|
||||
|
@ -14,7 +14,13 @@
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
{% if item.value is mapping %}
|
||||
{{ item.value | to_nice_yaml(indent=2) }}
|
||||
{% else %}
|
||||
{% for ve_line in item.example %}
|
||||
{{ ve_line }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
```
|
||||
{% endif %}
|
||||
{% if item.example is defined and item.example %}
|
||||
|
Loading…
Reference in New Issue
Block a user