diff --git a/swh/templates/listers/deployment.yaml b/swh/templates/listers/deployment.yaml
index 95f22625f10602fb51f65ea8f958644c42c4f496..8ab2c40dc19489f4c726917dfee1ecbb8c5c7ffa 100644
--- a/swh/templates/listers/deployment.yaml
+++ b/swh/templates/listers/deployment.yaml
@@ -127,7 +127,7 @@ spec:
             path: "config.yml.template"
           - key: "init-container-entrypoint.sh"
             path: "init-container-entrypoint.sh"
-        {{ if $use_json_logger -}}
+        {{ if $use_json_logger }}
           - key: "logging-configuration.yml"
             path: "logging-configuration.yml"
         {{ end }}