Skip to content

Commit

Permalink
Fix labels section being defined twice in docker-compose.yml when…
Browse files Browse the repository at this point in the history
… `labels` is a dictionary.
  • Loading branch information
ifalatiksetlog committed Oct 4, 2024
1 parent a8a6d74 commit 6316421
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## v3.0.4

### project_deployment
- Fix `labels` section being defined twice in `docker-compose.yml` when `labels` is a dictionary.

## v3.0.3

### project_deployment
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: ifalatik
name: docker

# The version of the collection. Must be compatible with semantic versioning
version: "3.0.3"
version: "3.0.4"

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
3 changes: 1 addition & 2 deletions roles/project_deployment/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ networks:
{% for key, value in network[ 'labels' ].items() %}
{{ key }}: {{ value }}
{% endfor %}
{% endif %}
{% if network[ 'labels' ] | length > 0 %}
{% elif network[ 'labels' ] | length > 0 %}
labels:
{% for network_label in network[ 'labels' ] %}
- {{ network_label }}
Expand Down

0 comments on commit 6316421

Please sign in to comment.