aboutsummaryrefslogtreecommitdiffstats
path: root/functest/energy
diff options
context:
space:
mode:
Diffstat (limited to 'functest/energy')
-rw-r--r--functest/energy/energy.py3
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(