From a302d6105907c8021ae207e7dc234a7a8c7f5d04 Mon Sep 17 00:00:00 2001 From: Alberto Chiusole Date: Wed, 3 Oct 2018 23:33:06 +0200 Subject: [PATCH] Edit pg_hba template to work with jinja 'trim whitespaces' option on the master. --- postgres/templates/pg_hba.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/templates/pg_hba.conf.j2 b/postgres/templates/pg_hba.conf.j2 index 11f4cad..0dfcc4e 100644 --- a/postgres/templates/pg_hba.conf.j2 +++ b/postgres/templates/pg_hba.conf.j2 @@ -20,7 +20,7 @@ local all postgres peer # TYPE DATABASE USER ADDRESS METHOD -{%- for acl in acls %} +{% for acl in acls %} {%- if acl|first() == 'local' %} {%- if acl|length() == 3 %} @@ -36,5 +36,5 @@ local all postgres peer {%- endif %} {%- endif %} -{{ '{0:<7} {1:<15} {2:<15} {3:<23} {4}'.format(*acl) -}} +{{ '{0:<7} {1:<15} {2:<15} {3:<23} {4}'.format(*acl) }} {% endfor %}