Skip to content
Snippets Groups Projects
Commit d7f72290 authored by Auke Klazema's avatar Auke Klazema
Browse files

Task #11500: Merge of RT-Task11500 to the release branch

parents 927f8d95 61f0348b
No related branches found
Tags LOFAR-Release-3_0_15
No related merge requests found
......@@ -4980,6 +4980,7 @@ SAS/TriggerServices/bin/triggercancellationservice.ini -text
SAS/TriggerServices/bin/triggerrestinterface -text
SAS/TriggerServices/bin/triggerservice -text
SAS/TriggerServices/bin/triggerservice.ini -text
SAS/TriggerServices/config/dbcredentials_trigger_restinterface.ini -text
SAS/TriggerServices/django_rest/CMakeLists.txt -text
SAS/TriggerServices/django_rest/db.sqlite3 -text
SAS/TriggerServices/django_rest/manage.py -text
......
[database:trigger_restinterface]
type = mysql
host = mysql1.control.lofar
user = <redacted>
password = <redacted>
database = lofar_trigger_rest
port = 3306
......@@ -23,7 +23,7 @@ logger.setLevel(logging.INFO)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dbc = dbcredentials.DBCredentials()
mom_credentials = dbc.get("MoM")
restinterface_credentials = dbc.get("trigger_restinterface")
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
......@@ -87,11 +87,11 @@ WSGI_APPLICATION = 'lofar.triggerservices.restinterface.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'lofar_trigger_rest',
'USER': mom_credentials.user,
'PASSWORD': mom_credentials.password,
'HOST': mom_credentials.host,
'PORT': mom_credentials.port,
'NAME': restinterface_credentials.database,
'USER': restinterface_credentials.user,
'PASSWORD': restinterface_credentials.password,
'HOST': restinterface_credentials.host,
'PORT': restinterface_credentials.port,
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment