From 843cebb874d1ade63de79da88404c9d1b5b3c813 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 16 Jun 2020 21:48:34 +0200 Subject: [PATCH] fix nexwork control --- templates/services/droneci_runner_compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/services/droneci_runner_compose.yml.j2 b/templates/services/droneci_runner_compose.yml.j2 index 5fc1def..ea9e782 100644 --- a/templates/services/droneci_runner_compose.yml.j2 +++ b/templates/services/droneci_runner_compose.yml.j2 @@ -26,8 +26,8 @@ services: {% if droneci_runner_docker_memory_reservation is defined %} mem_reservation: {{ droneci_runner_docker_memory_reservation }} {% endif %} +{% if droneci_runner_docker_networks | default([]) | length > 0 %} -{% if droneci_runner_docker_networks | default([]) %} networks: {% for network in droneci_runner_docker_networks %} {{ network.name }}: