From bc3619a83ba2e16ce75c25ff03a8f50a85adf961 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 1 Jun 2023 04:39:35 +0800 Subject: [PATCH] fix flask_nameko bug 4 --- chassis/flask_nameko/proxies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chassis/flask_nameko/proxies.py b/chassis/flask_nameko/proxies.py index b8b88c5..1cf12cd 100644 --- a/chassis/flask_nameko/proxies.py +++ b/chassis/flask_nameko/proxies.py @@ -69,8 +69,7 @@ class FlaskPooledClusterRpcProxy(PooledClusterRpcProxy): def init_app(self, app): config = dict() for key, val in app.config.items(): - match = re.match(r"NAMEKO\_(?P.*)", key) - if match: + if key == 'NAMEKO_AMQP_URI': config['uri'] = val self.configure(config)