bump utils to 13.1.0

brings in changes to allow logging json to sdout on cloudfoundry boxes
This commit is contained in:
Leo Hemsted
2017-01-09 19:14:04 +00:00
committed by bandesz
parent 54af97767f
commit 88b848a4a3
6 changed files with 40 additions and 13 deletions

View File

@@ -9,10 +9,15 @@ import json
def extract_cloudfoundry_config():
vcap_services = json.loads(os.environ['VCAP_SERVICES'])
set_config_env_vars(vcap_services)
def set_config_env_vars(vcap_services):
vcap_application = json.loads(os.environ.get('VCAP_APPLICATION'))
os.environ['NOTIFY_ENVIRONMENT'] = vcap_application['space_name']
os.environ['LOGGING_STDOUT_JSON'] = '1'
for s in vcap_services['user-provided']:
if s['name'] == 'notify-config':
extract_notify_config(s)