Merge pull request #244 from bebosudo/bebosudo_whitespaces_hba

Edit pg_hba template to work with jinja 'trim whitespaces' option on salt master
This commit is contained in:
Javier Bértoli 2018-10-17 11:13:26 -03:00 committed by GitHub
commit 656dc4b76d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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