Skip to content

Commit

Permalink
Delete commit
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed May 7, 2024
1 parent 834acf0 commit 74f1d0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _traefik3_labels.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
{%- macro domains_rule(hosts, path_prefixes=(), paths=()) -%}
Host(`{{ hosts | join("` || Host(`") }}`)
{%- if path_prefixes or paths -%}
&& (
" "+&& (
{%- if path_prefixes -%}
{{ path_prefix_rule(path_prefixes) }}
{%- if paths %} || {% endif %}
{%- endif %}
{%- if paths -%}
{{ path_rule(paths) }}
{%- endif %}
)
{%- endif -%}
)
{%- endif %}
{%- endmacro %}

Expand Down
6 changes: 6 additions & 0 deletions tests/test_nitpicking.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ def test_cidr_whitelist_rules(
pre_commit("run", "-a", retcode=None)
dc_prod = DockerClient(compose_files=["prod.yaml"])
dc_test = DockerClient(compose_files=["test.yaml"])
# Abre y lee el contenido de prod.yaml
with open("prod.yaml") as file:
content = file.read()

# Imprime el contenido leído
print(content)
prod_config = dc_prod.compose.config()
test_config = dc_test.compose.config()
# Assert prod.yaml
Expand Down

0 comments on commit 74f1d0a

Please sign in to comment.