Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
check variable definitions to avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raphapr committed Aug 17, 2020
1 parent fdb26d1 commit 491872b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/pgbouncer.ini.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#jinja2: trim_blocks: True

[pgbouncer]
logfile = {{ pgbouncer_log_file }}
pidfile = {{ pgbouncer_pid_file }}
Expand Down Expand Up @@ -30,5 +32,6 @@ stats_users = {{ pgbouncer_stats_users|join(",") }}
{% if database.comment is defined %}
# {{ database.comment }}
{% endif %}
{{ database.name }} = host={{ database.host }} dbname={{ database.dbname }} client_encoding={{ database.encoding }} auth_user={{ database.auth_user }}
{{ database.name }} = host={{ database.host }} {%- if database.dbname is defined %} dbname={{ database.dbname }} {%- endif %} {%- if database.client_encoding is defined %} client_encoding={{ database.client_encoding }} {%- endif %} {%- if database.auth_user is defined %} auth_user={{ database.auth_user }} {%- endif %}

{% endfor %}

0 comments on commit 491872b

Please sign in to comment.