diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-05-17 11:46:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-17 11:46:38 +0000 |
commit | 0821c4204c7ca470818cfe1c83060fcd2f94e3d6 (patch) | |
tree | ef425cd77381d13d149be43ddc524b0c691770a5 /functest/utils/env.py | |
parent | a3dd6167706695a73a72486a1217d32c76071592 (diff) | |
parent | f1dec639de47c632ebcf9acc4f7e74ed57979a6f (diff) |
Merge "Conform constants.py with the minimal standards"
Diffstat (limited to 'functest/utils/env.py')
-rw-r--r-- | functest/utils/env.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functest/utils/env.py b/functest/utils/env.py index 7e4df2ea..c9629e15 100644 --- a/functest/utils/env.py +++ b/functest/utils/env.py @@ -1,6 +1,11 @@ +#!/usr/bin/env python + import os import re +import six + + default_envs = { 'NODE_NAME': 'unknown_pod', 'CI_DEBUG': 'false', @@ -17,9 +22,9 @@ default_envs = { class Environment(object): def __init__(self): - for k, v in os.environ.iteritems(): + for k, v in six.iteritems(os.environ): self.__setattr__(k, v) - for k, v in default_envs.iteritems(): + for k, v in six.iteritems(default_envs): if k not in os.environ: self.__setattr__(k, v) self._set_ci_run() |