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
|
* BUGFIX
|
||||||
* add missing default for `role_dir`
|
* add missing default for `role_dir`
|
||||||
* fix value mapping in jinja2 source dict
|
* fix value mapping in jinja2 source dict
|
||||||
|
* add missing exception handling for dict merge
|
||||||
|
* fix handling of multiline default values in template
|
||||||
* FEATURE
|
* FEATURE
|
||||||
* use explicit marker to convert annotation values to json
|
* use explicit marker to convert annotation values to json
|
||||||
|
@ -14,7 +14,13 @@
|
|||||||
#### Default value
|
#### Default value
|
||||||
|
|
||||||
```YAML
|
```YAML
|
||||||
|
{% if item.value is mapping %}
|
||||||
{{ item.value | to_nice_yaml(indent=2) }}
|
{{ item.value | to_nice_yaml(indent=2) }}
|
||||||
|
{% else %}
|
||||||
|
{% for ve_line in item.example %}
|
||||||
|
{{ ve_line }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
```
|
```
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.example is defined and item.example %}
|
{% if item.example is defined and item.example %}
|
||||||
|
Loading…
Reference in New Issue
Block a user