From a2151df79f14b3059b32113612baec715a4f57ae Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Sat, 24 May 2025 18:45:26 +0200 Subject: [PATCH] fixed bogus config for building docs --- docs/source/conf.py | 6 +++++- mapping_provider/backends/rmq/queue.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 8a6ca80..c5abdde 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -58,7 +58,11 @@ html_static_path = ['_static'] # start the server and dump the schema with tempfile.NamedTemporaryFile(delete=False) as f: - bogus_config = {'inventory': 'http://bogus'} + bogus_config = { + 'inventory': 'http://bogus', + 'reporting': 'https://bogus', + 'correlator_exchange': 'bogus', + } with open(f.name, 'w') as f: json.dump(bogus_config, f) f.flush() diff --git a/mapping_provider/backends/rmq/queue.py b/mapping_provider/backends/rmq/queue.py index a53cb79..1aa8ffd 100644 --- a/mapping_provider/backends/rmq/queue.py +++ b/mapping_provider/backends/rmq/queue.py @@ -145,7 +145,7 @@ def setup_channel( if not routing_keys: # in case no routing keys are provided (as for fanout exchanges), # ensure the queue is still bound to the exchange - routing_keys = [None] + channel.queue_bind(exchange=exchange_name, queue=queue_name) for rk in routing_keys: channel.queue_bind(exchange=exchange_name, queue=queue_name, routing_key=rk) -- GitLab