diff --git a/_traefik3_labels.yml.jinja b/_traefik3_labels.yml.jinja index 4da3f6cd..d5bdf030 100644 --- a/_traefik3_labels.yml.jinja +++ b/_traefik3_labels.yml.jinja @@ -10,8 +10,8 @@ {%- endif %} {%- if paths -%} {{ path_rule(paths) }} - {%- endif %} - ) + {%- endif -%} + ) {%- endif %} {%- endmacro %} 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