From 18a516b87a6070a1a73281218a96ebce152c25cf Mon Sep 17 00:00:00 2001
From: licanwei
Date: Thu, 13 Feb 2020 14:45:33 +0800
Subject: [PATCH] just set necessary config options
There are many warning info in the Watcher api log file,
the reason is that keystonemiddleware only need config
section keystone_authtoken.
refer to https://docs.openstack.org/keystonemiddleware/latest/
Closes-Bug: #1864129
Change-Id: Ie790277d55b3a2d93c26781f7e5e8f66b87227d8
---
watcher/api/acl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/watcher/api/acl.py b/watcher/api/acl.py
index 75b8019b2..c8a8775e1 100644
--- a/watcher/api/acl.py
+++ b/watcher/api/acl.py
@@ -37,5 +37,5 @@ def install(app, conf, public_routes):
if not CONF.get('enable_authentication'):
return app
return auth_token.AuthTokenMiddleware(app,
- conf=dict(conf),
+ conf=dict(conf.keystone_authtoken),
public_api_routes=public_routes)