diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-08-24 16:13:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-24 16:13:23 +0000 |
commit | ad44bfd97555a7372269db539857fd53fffb0460 (patch) | |
tree | d699db53f5726f5efbbb44b98a118eba2c939b87 /functest/utils | |
parent | f793114a359467deb494770c05689c87b1007707 (diff) | |
parent | 3900d3c3efa75e0a382183154c534e67b199152c (diff) |
Merge "Obtain pod_name by CONST instead of get function"
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 a766ef95..5bf3adb6 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') |