Pass environment variables to exmaple.py
Use another way to check whether to use environment variables. Use the env value even if it is None as long as the key exists so an empty role list can trigger role auto assignment. Change-Id: Ifb2993e4d71c7e58aacd39e1a4782040bbc11885
This commit is contained in:
parent
90b6515529
commit
8a6dcc89b3
@ -80,9 +80,8 @@ PRESET_VALUES = {
|
||||
'MACHINES_TO_ADD': '00:11:20:30:40:01',
|
||||
'BUILD_TIMEOUT': 60
|
||||
}
|
||||
print os.environ.get("NAMESERVERS")
|
||||
for v in PRESET_VALUES:
|
||||
if os.environ.get(v):
|
||||
if v in os.environ.keys():
|
||||
PRESET_VALUES[v] = os.environ.get(v)
|
||||
print (v + PRESET_VALUES[v] + " is set by env variables")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user