Add length check
This commit is contained in:
parent
7444885ecd
commit
6fc395a81f
@ -6,10 +6,10 @@
|
|||||||
instances:
|
instances:
|
||||||
{% for (key,value) in instances.items() %}
|
{% for (key,value) in instances.items() %}
|
||||||
- name: "{{ value.name }}"
|
- name: "{{ value.name }}"
|
||||||
{% if value.ip is defined %}
|
{% if value.ip is defined and value.ip | length > 0 %}
|
||||||
ip:
|
ip:
|
||||||
- "{{ value.ip }}"
|
- "{{ value.ip }}"
|
||||||
{% elif value.dns is defined %}
|
{% elif value.dns is defined and value.dns | length > 0 %}
|
||||||
dns:
|
dns:
|
||||||
- "{{ value.dns }}"
|
- "{{ value.dns }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user