diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-24 17:04:16 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-24 17:04:16 +0100 |
commit | d0ffb7dd996ddd43a1e0fe78fb28ee88cb167fd6 (patch) | |
tree | 373501d878fe82760dee64bcfbf2a46b73b090be /functest/energy/energy.py | |
parent | ee838977750a9d23d02a710f7a41a02e8f0f24a4 (diff) |
Set Energy default values to None
It conforms with the other default values.
Change-Id: Id46110c5aedf244f94e83b5b0389b135f075ffc8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/energy/energy.py')
-rw-r--r-- | functest/energy/energy.py | 2 |
1 files changed, 1 insertions, 1 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 |