aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/env.py
blob: b6af767dae576d26588d0c224bfe55cbaa037f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

default_envs = {
    'NODE_NAME': 'unknown_pod',
    'CI_DEBUG': 'true'
}


class Environment(object):
    def __init__(self):
        for k, v in os.environ.iteritems():
            self.__setattr__(k, v)
        for k, v in default_envs.iteritems():
            if k not in os.environ:
                self.__setattr__(k, v)


ENV = Environment()