diff options
Diffstat (limited to 'functest')
-rw-r--r-- | functest/energy/energy.py | 2 | ||||
-rw-r--r-- | functest/utils/env.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/functest/energy/energy.py b/functest/energy/energy.py index d5f6871d..a2652211 100644 --- a/functest/energy/energy.py +++ b/functest/energy/energy.py @@ -107,7 +107,7 @@ class EnergyRecorder(object): uri_comp = "/recorders/environment/" uri_comp += urllib.parse.quote_plus(environment) - if creds_usr != "" and creds_pass != "": + if creds_usr and creds_pass: energy_recorder_api_auth = (creds_usr, creds_pass) else: energy_recorder_api_auth = None diff --git a/functest/utils/env.py b/functest/utils/env.py index 5ad870ed..aa2da0b5 100644 --- a/functest/utils/env.py +++ b/functest/utils/env.py @@ -24,8 +24,8 @@ INPUTS = { 'POD_ARCH': None, 'TEST_DB_URL': 'http://testresults.opnfv.org/test/api/v1/results', 'ENERGY_RECORDER_API_URL': 'http://energy.opnfv.fr/resources', - 'ENERGY_RECORDER_API_USER': '', - 'ENERGY_RECORDER_API_PASSWORD': '' + 'ENERGY_RECORDER_API_USER': None, + 'ENERGY_RECORDER_API_PASSWORD': None } |