fix volume checks

This commit is contained in:
Robert Kaussow 2020-06-16 21:46:28 +02:00
parent fa18029fdf
commit c960f62e22
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 2 deletions

View File

@ -68,15 +68,15 @@ services:
{% if droneci_memory_reservation is defined %}
mem_reservation: {{ droneci_memory_reservation }}
{% endif %}
{% if droneci_volumes | default([]) | rejectattr("bind") | list | length > 0 %}
{% if droneci_volumes | default([]) | rejectattr("bind") %}
volumes:
{% for volume in droneci_volumes | rejectattr("bind") %}
{{ volume.name }}:
{% endfor %}
{% endif %}
{% if droneci_networks | default([]) | length > 0 %}
{% if droneci_networks | default([]) %}
networks:
{% for network in droneci_networks %}
{{ network.name }}: