bodhi: Only backend01 should get the composer.start message.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2019-05-14 20:41:09 +00:00
parent 104e857951
commit 0509e5ffc5

View file

@ -42,7 +42,10 @@ queue = "bodhi{{ env_suffix }}"
exchange = "amq.topic"
routing_keys = [
{% for key in bodhi_message_routing_keys %}
{# Only bodhi-backend01 should get the composer start messages #}
{% if 'bodhi.composer.start' not in key or inventory_hostname.startswith('bodhi-backend01') %}
"{{ key }}",
{% endif %}
{% endfor %}
]