aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/resources/v1/tasks.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-13 10:23:26 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-13 10:23:26 +0000
commitfd16007ccfb7052c3cbab82e6184be277320b83a (patch)
treefb2ac71ebb64ae25201b8b4a2e7a14d7da7aa6a6 /functest/api/resources/v1/tasks.py
parent03ed2e069ddf8fc82428def13862d06bb8e4b105 (diff)
parentef798eee7e223b908361c7c79278cd347128a039 (diff)
Merge "Read env vars instead of using CONST in API"
Diffstat (limited to 'functest/api/resources/v1/tasks.py')
-rw-r--r--functest/api/resources/v1/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/api/resources/v1/tasks.py b/functest/api/resources/v1/tasks.py
index 6bf625a8..5af8a678 100644
--- a/functest/api/resources/v1/tasks.py
+++ b/functest/api/resources/v1/tasks.py
@@ -85,7 +85,7 @@ class V1TaskLog(ApiResource):
except ValueError:
return api_utils.result_handler(status=1, data='No such task id')
- task_log_dir = CONST.__getattribute__('dir_results')
+ task_log_dir = getattr(CONST, 'dir_results')
# pylint: disable=maybe-no-member
index = int(self._get_args().get('index', 0))