cloud-image-uploader: Fix routing key for AMQP binding

env renders to "production" which is not what messages are published
under ("prod"). Match what other apps are doing and just use a wildcard
so it'll match anything. Since prod and stage are separate brokers this
is fine.
This commit is contained in:
Jeremy Cline 2024-04-17 11:10:46 -04:00
parent 8541e8980b
commit 79935add66
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
username: "cloud-image-uploader{{ env_suffix }}"
queue_name: "cloud-image-uploader{{ env_suffix }}"
routing_keys:
- "org.fedoraproject.{{ env }}.buildsys.build.state.change"
- "org.fedoraproject.*.buildsys.build.state.change"
thresholds:
warning: 10
critical: 50

View File

@ -19,7 +19,7 @@ app_contacts_email = "cloud@lists.fedoraproject.org"
[[bindings]]
queue = "cloud-image-uploader{{ env_suffix }}"
exchange = "amq.topic"
routing_keys = ["org.fedoraproject.{{ env }}.buildsys.build.state.change"]
routing_keys = ["org.fedoraproject.*.buildsys.build.state.change"]
[queues."cloud-image-uploader{{ env_suffix }}"]
durable = true
@ -83,7 +83,7 @@ stream = "ext://sys.stdout"
level = "INFO"
propagate = false
handlers = ["console"]
[log_config.loggers.fedora_cloud_image_uploader]
level = "INFO"
propagate = false