Skip to content

Commit

Permalink
fix: use quote for postgresql parameter in yaml config
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Gunawan <jonathanyudigun@gmail.com>
Co-authored-by: Rizky Putra <rizky.eko.putra@gmail.com>
  • Loading branch information
3 people committed Dec 2, 2022
1 parent cf27f6b commit 0f58799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/patroni.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bootstrap:
{% if patroni_bootstrap_dcs_postgresql_parameters |d([], true) |length > 0 %}
parameters:
{% for guc in patroni_bootstrap_dcs_postgresql_parameters %}
{{ guc.option }}: {{ guc.value }}
{{ guc.option }}: "{{ guc.value }}"
{% endfor %}
{% endif %}
{% if patroni_bootstrap_dcs_postgresql_recovery_conf |d([], true) |length > 0 %}
Expand Down Expand Up @@ -215,7 +215,7 @@ postgresql:
{% if patroni_postgresql_parameters |d([], true) |length > 0 %}
parameters:
{% for guc in patroni_postgresql_parameters %}
{{ guc.option }}: {{ guc.value }}
{{ guc.option }}: "{{ guc.value }}"
{% endfor %}
{% endif %}
{% if patroni_postgresql_pg_hba |d([], true) |length > 0 %}
Expand Down

0 comments on commit 0f58799

Please sign in to comment.