Skip to content

Commit 5d1676a

Browse files
authored
Do not set tags: nosync when sync_priority is defined (#1342)
1 parent 021b01a commit 5d1676a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automation/roles/patroni/templates/patroni.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ tags:
267267
{{ patroni_tags | replace(" ", "") | replace("=", ": ") | replace(",", "\n ") }}
268268
{% endif %}
269269
{% set normalized_tags = patroni_tags | default('') | replace(" ", "") %}
270-
{% if 'nosync=' not in normalized_tags %}
270+
{% if 'nosync=' not in normalized_tags and 'sync_priority=' not in normalized_tags %}
271271
nosync: false
272272
{% endif %}
273273
{% if 'noloadbalance=' not in normalized_tags %}

0 commit comments

Comments
 (0)