diff --git a/templates/services/droneci_autoscaler_compose.yml.j2 b/templates/services/droneci_autoscaler_compose.yml.j2 index 5a23a41..306e1ab 100644 --- a/templates/services/droneci_autoscaler_compose.yml.j2 +++ b/templates/services/droneci_autoscaler_compose.yml.j2 @@ -7,7 +7,7 @@ services: container_name: {{ inst.name }} image: {{ droneci_autoscaler_image }} restart: {{ droneci_autoscaler_restart_policy }} - {% if inst.exposed_ports | default(droneci_autoscaler_exposed_ports) | lenght > 0 %} + {% if inst.exposed_ports | default(droneci_autoscaler_exposed_ports) | length > 0 %} ports: {% for port in inst.exposed_ports | default(droneci_autoscaler_exposed_ports) %} - {{ port | quote }}