diff --git a/_traefik3_labels.yml.jinja b/_traefik3_labels.yml.jinja index 4da3f6cd..96f98b21 100644 --- a/_traefik3_labels.yml.jinja +++ b/_traefik3_labels.yml.jinja @@ -5,7 +5,7 @@ {%- if path_prefixes or paths -%} && ( {%- if path_prefixes -%} - {{ path_prefix_rule(path_prefixes) }} + {{ path_prefix_rule(path_prefixes) -}} {%- if paths %} || {% endif %} {%- endif %} {%- if paths -%} diff --git a/tests/test_nitpicking.py b/tests/test_nitpicking.py index de059e23..5f98c4c6 100644 --- a/tests/test_nitpicking.py +++ b/tests/test_nitpicking.py @@ -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