Edit pg_hba template to work with jinja 'trim whitespaces' option on the master.

This commit is contained in:
Alberto Chiusole 2018-10-03 23:33:06 +02:00
parent 096293be22
commit a302d61059

View file

@ -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 %}