Ensure instance_map.port is numeric

Fixup related to https://github.com/matrix-org/synapse/pull/15431
This commit is contained in:
Slavi Pantaleev 2023-04-25 15:26:30 +03:00
parent c8215c98e7
commit 2d051679c0

View file

@ -61,7 +61,7 @@
# Inject stream writers into the instance map.
- ansible.builtin.set_fact:
matrix_synapse_instance_map: "{{ matrix_synapse_instance_map | combine({matrix_synapse_worker_details.name: {'host': matrix_synapse_worker_details.name, 'port': matrix_synapse_worker_details.replication_port}}) }}"
matrix_synapse_instance_map: "{{ matrix_synapse_instance_map | combine({matrix_synapse_worker_details.name: {'host': matrix_synapse_worker_details.name, 'port': matrix_synapse_worker_details.replication_port | int}}) }}"
when: matrix_synapse_worker_details.type in matrix_synapse_known_instance_map_eligible_worker_types
# Inject pusher instances.