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/energy | |
parent | f793114a359467deb494770c05689c87b1007707 (diff) | |
parent | 3900d3c3efa75e0a382183154c534e67b199152c (diff) |
Merge "Obtain pod_name by CONST instead of get function"
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 c410e84f..508f18e7 100644 --- a/functest/energy/energy.py +++ b/functest/energy/energy.py @@ -18,6 +18,7 @@ from functools import wraps import requests import urllib3 +from functest.utils.constants import CONST import functest.utils.functest_utils as ft_utils @@ -91,7 +92,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( |