diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-08-17 11:39:37 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-08-17 11:39:37 +0000 |
commit | 3900d3c3efa75e0a382183154c534e67b199152c (patch) | |
tree | debb844e6dc73663415b908aa0f7e199ff635364 /functest/utils | |
parent | c582427bd2586347fd21bcee3b28a2f7e75faf3d (diff) |
Obtain pod_name by CONST instead of get function
JIRA: FUNCTEST-763
Change-Id: Id334745a1eac8b933d77f9cb36a506a02366d760
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/utils')
-rw-r--r-- | functest/utils/functest_utils.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py index bf68e43a..ce9a205c 100644 --- a/functest/utils/functest_utils.py +++ b/functest/utils/functest_utils.py @@ -117,24 +117,11 @@ def get_version(): return "unknown" -def get_pod_name(): - """ - Get PoD Name from env variable NODE_NAME - """ - try: - return os.environ['NODE_NAME'] - except KeyError: - logger.info( - "Unable to retrieve the POD name from environment. " + - "Using pod name 'unknown-pod'") - return "unknown-pod" - - def logger_test_results(project, case_name, status, details): """ Format test case results for the logger """ - pod_name = get_pod_name() + pod_name = CONST.__getattribute__('NODE_NAME') scenario = get_scenario() version = get_version() build_tag = CONST.__getattribute__('BUILD_TAG') |