Skip to content

Commit

Permalink
fixes logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Sep 9, 2024
1 parent a80f0ae commit c2c27f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ services:
{% for device_id in device.device_ids %}
- {{ device_id }}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}
deploy:
resources:
Expand All @@ -202,6 +200,8 @@ services:
- count: {{ container.deploy.resources.reservations.devices[0].driver.count | default("1") }}
capabilities: [gpu]
{% endif %}
{% endfor %}
{% endif %}
{% if container.restart is defined %}
restart: {{ container.restart }}
{% endif %}
Expand Down

0 comments on commit c2c27f3

Please sign in to comment.