From 3900d3c3efa75e0a382183154c534e67b199152c Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Thu, 17 Aug 2017 11:39:37 +0000 Subject: Obtain pod_name by CONST instead of get function JIRA: FUNCTEST-763 Change-Id: Id334745a1eac8b933d77f9cb36a506a02366d760 Signed-off-by: Linda Wang --- functest/energy/energy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functest/energy') 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( -- cgit 1.2.3-korg