diff options
author | 2017-07-13 20:09:10 +0800 | |
---|---|---|
committer | 2017-07-20 15:18:08 +0800 | |
commit | c646dd47d0f75eb568ebadea4e9f64a8f9a14db3 (patch) | |
tree | 3501b9cc078e9abc45a9ea042548084bc095e07c /utils/test/testapi/opnfv_testapi/ui/auth | |
parent | 20826c00015567244153ab2e7b39452600fd38c7 (diff) |
decouple the mutual-dependence of config.py and server.py
Currently server.py relies on CONF while starting the service, and
config.py's config_fie is set in server.py, which is wrongly bi-depended
this patch aims to let Config parse the sys.argv personally,
just as oslo.config do, so that decouple the mutual-dependency
Change-Id: I46887d122a98d478caebe9eeb7ab038941ce1f6b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/ui/auth')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/ui/auth/sign.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/test/testapi/opnfv_testapi/ui/auth/sign.py b/utils/test/testapi/opnfv_testapi/ui/auth/sign.py index 5b3622579..13762c92b 100644 --- a/utils/test/testapi/opnfv_testapi/ui/auth/sign.py +++ b/utils/test/testapi/opnfv_testapi/ui/auth/sign.py @@ -3,11 +3,11 @@ from tornado import gen from tornado import web import logging -from opnfv_testapi.common import config +from opnfv_testapi.common.config import CONF from opnfv_testapi.ui.auth import base from opnfv_testapi.ui.auth import constants as const -CONF = config.Config() +# CONF = config.Config() class SigninHandler(base.BaseHandler): |