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/energy | |
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/energy')
-rw-r--r-- | functest/energy/energy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/energy/energy.py b/functest/energy/energy.py index 580bc6b0..ec03e180 100644 --- a/functest/energy/energy.py +++ b/functest/energy/energy.py @@ -17,6 +17,7 @@ import urllib from functools import wraps import requests +from functest.utils.constants import CONST import functest.utils.functest_utils as ft_utils @@ -90,7 +91,7 @@ class EnergyRecorder(object): # Singleton pattern for energy_recorder_api static member # Load only if not previouly done if EnergyRecorder.energy_recorder_api is None: - environment = ft_utils.get_pod_name() + environment = CONST.__getattribute__('NODE_NAME') # API URL energy_recorder_uri = ft_utils.get_functest_config( |