Commit 1790fa44 authored by Ulin Vasiliy's avatar Ulin Vasiliy
Browse files

script => target fix

parent e765e825
......@@ -199,11 +199,11 @@ postgresql:
password: {{ role.password }}
{% endfor %}
{% endif %}
{% if patroni_postgresql_callbacks |map(attribute='script') |join() |trim |length > 0 %}
{% if patroni_postgresql_callbacks |map(attribute='target') |join() |trim |length > 0 %}
callbacks:
{% for callback in patroni_postgresql_callbacks %}
{% if callback.script | default(None, true) %}
{{ callback.event }}: {{ callback.script }}
{% if callback.target | default(None, true) %}
{{ callback.event }}: {{ callback.target }}
{% endif %}
{% endfor %}
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment