diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-16 16:22:33 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-16 17:44:36 +0100 |
commit | e093264d4ceee7e09471c738055638eb6f86d17a (patch) | |
tree | 1c5a20f5d84e5001ea1ef8897deefbf673bc3758 /vnfmgr | |
parent | 8346170ebffc6407252513a39affa53fc1f45a81 (diff) |
Switch from CONST to env.get()
env.get() ensures that default values are reused if unset.
It also avoids desynchronization between os.environ and CONST.
It follows the change "Get properly env vars or their default values"
[1] applied in Functest.
It also fixes minor issues on shebangs and takes several pylint rules
into account in this module:
- http://pylint-messages.wikidot.com/messages:w0702
- https://www.python.org/dev/peps/pep-0282/
[1] https://gerrit.opnfv.org/gerrit/#/c/52221/
Change-Id: Ia7ad168b2cbbade8ea3890fb95dc01bcdfc50468
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'vnfmgr')
0 files changed, 0 insertions, 0 deletions