fix flask_nameko bug 4
This commit is contained in:
parent
81de5dcd60
commit
bc3619a83b
|
@ -69,8 +69,7 @@ class FlaskPooledClusterRpcProxy(PooledClusterRpcProxy):
|
||||||
def init_app(self, app):
|
def init_app(self, app):
|
||||||
config = dict()
|
config = dict()
|
||||||
for key, val in app.config.items():
|
for key, val in app.config.items():
|
||||||
match = re.match(r"NAMEKO\_(?P<name>.*)", key)
|
if key == 'NAMEKO_AMQP_URI':
|
||||||
if match:
|
|
||||||
config['uri'] = val
|
config['uri'] = val
|
||||||
self.configure(config)
|
self.configure(config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue