From 17c3d09e4eb207dbb657db8c12e2a6235d529783 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 8 Jun 2016 15:23:07 +0200 Subject: [PATCH] library/roles/postgresql/templates/pgpool.conf.j2: Fix the recovery password settings --- postgresql/templates/pgpool.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql/templates/pgpool.conf.j2 b/postgresql/templates/pgpool.conf.j2 index 2875b48b..04f3d9ff 100644 --- a/postgresql/templates/pgpool.conf.j2 +++ b/postgresql/templates/pgpool.conf.j2 @@ -421,10 +421,10 @@ search_primary_node_timeout = 10 recovery_user = '{{ pgpool_recovery_user }}' # Online recovery user {% if pgpool_recovery_user_pwd is defined %} -recovery_password = '{{ pgpool_recovery_user_pwd | default([]) }}' +recovery_password = '{{ pgpool_recovery_user_pwd | default() }}' # Online recovery password {% else %} -recovery_password = '{{ pgpool_recovery_user_pwd | default([]) }}' +recovery_password = '' {% endif %} recovery_1st_stage_command = '{{ pgpool_recovery_stage1_script }}' # Executes a command in first stage