diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-02-13 10:23:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-13 10:23:26 +0000 |
commit | fd16007ccfb7052c3cbab82e6184be277320b83a (patch) | |
tree | fb2ac71ebb64ae25201b8b4a2e7a14d7da7aa6a6 /functest/api/resources/v1/tasks.py | |
parent | 03ed2e069ddf8fc82428def13862d06bb8e4b105 (diff) | |
parent | ef798eee7e223b908361c7c79278cd347128a039 (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.py | 2 |
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)) |