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):
|
||||
config = dict()
|
||||
for key, val in app.config.items():
|
||||
match = re.match(r"NAMEKO\_(?P<name>.*)", key)
|
||||
if match:
|
||||
if key == 'NAMEKO_AMQP_URI':
|
||||
config['uri'] = val
|
||||
self.configure(config)
|
||||
|
||||
|
|
Loading…
Reference in New Issue