diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-07 19:23:30 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-07 19:23:30 +0800 |
commit | 8d66710a9b919fd7c42944ced79b1e25bc6c5482 (patch) | |
tree | e6ae2ff14a8570bbdd63eddca1020c99e6598e25 /testapi/testapi-client/testapiclient/pods.py | |
parent | f9a4011f025ed60cbc49a3058aa7f35b8396e74f (diff) |
refactor config process in testapiclient
substitue config file with env variable
Change-Id: Ie8243a7dd429708998bde9d612c9a4552a76c14f
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/testapi-client/testapiclient/pods.py')
-rw-r--r-- | testapi/testapi-client/testapiclient/pods.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testapi/testapi-client/testapiclient/pods.py b/testapi/testapi-client/testapiclient/pods.py index 47e2b59..0e58324 100644 --- a/testapi/testapi-client/testapiclient/pods.py +++ b/testapi/testapi-client/testapiclient/pods.py @@ -1,11 +1,11 @@ import json +import os from testapiclient import command -from testapiclient import config from testapiclient import http_client from testapiclient import identity -PODS_URL = config.Config.config.get("api", "url") + "/pods" +PODS_URL = os.environ.get('testapi_url') + "/pods" class PodGet(command.Lister): |