Merge "Pass environment variables to exmaple.py"

This commit is contained in:
Jenkins 2014-03-19 00:28:04 +00:00 committed by Gerrit Code Review
commit 202a904188

View File

@ -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: