24/09/2020 : le runner partagé est actuellement indisponible.

Commit b5ef7eb1 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer

EPOS_FDSN_MAP env variable

parent f23dbb73
Pipeline #46926 passed with stage
in 1 minute and 4 seconds
import os
import json
class Configurator():
......@@ -46,7 +47,16 @@ class Configurator():
GNUPG_HOMEDIR = os.getenv('GNUPG_HOMEDIR', '/gpghome')
SUPPORT_EMAIL = os.getenv('SUPPORT_EMAIL', 'resif-dc@univ-grenoble-alpes.fr')
EPOS_FDSN_MAP = {'/epos/alparray': {'networkcode':'Z3', 'startyear':2015, 'endyear': 2022}}
if 'EPOS_FDSN_MAP' in os.environ:
EPOS_FDSN_MAP = json.loads(os.getenv('EPOS_FDSN_MAP'))
except Exception as e:
raise ValueError("Value in EPOS_FDSN_MAP variable is not valid json.", e)
EPOS_FDSN_MAP = {"/epos/alparray": {"networkcode":"Z3", "startyear":2015, "endyear": 2022}}
raise ValueError("No value for RESIFINV_PGPASSWORD, please set environment variable PGPASSWORD or RESIFINV_PGPASSWORD")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment