Skip to content

Commit c2c27f3

Browse files
committed
fixes logic
1 parent a80f0ae commit c2c27f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/docker-compose.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ services:
192192
{% for device_id in device.device_ids %}
193193
- {{ device_id }}
194194
{% endfor %}
195-
{% endif %}
196-
{% endfor %}
197195
{% else %}
198196
deploy:
199197
resources:
@@ -202,6 +200,8 @@ services:
202200
- count: {{ container.deploy.resources.reservations.devices[0].driver.count | default("1") }}
203201
capabilities: [gpu]
204202
{% endif %}
203+
{% endfor %}
204+
{% endif %}
205205
{% if container.restart is defined %}
206206
restart: {{ container.restart }}
207207
{% endif %}

0 commit comments

Comments
 (0)