From ebe4058bd0076b2c7f6c30e5ed7c95a60f5eff72 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 20 Nov 2020 14:35:36 +0100 Subject: [PATCH] waiverdb: fix the url to postgresql in stg/prod Signed-off-by: Pierre-Yves Chibon --- roles/openshift-apps/waiverdb/templates/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/openshift-apps/waiverdb/templates/settings.py b/roles/openshift-apps/waiverdb/templates/settings.py index 4aa6996a6e..69edca1569 100644 --- a/roles/openshift-apps/waiverdb/templates/settings.py +++ b/roles/openshift-apps/waiverdb/templates/settings.py @@ -1,11 +1,9 @@ {% if env == 'staging' %} -DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5432/waiverdb' +DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.iad2.fedoraproject.org:5432/waiverdb' RESULTSDB_API_URL = 'https://taskotron.stg.fedoraproject.org/resultsdb_api/api/v2.0' CORS_URL = 'https://bodhi.stg.fedoraproject.org' {% else %} -{% if datacenter == "iad2" %} DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.iad2.fedoraproject.org:5432/waiverdb' -{% endif %} RESULTSDB_API_URL = 'https://taskotron.fedoraproject.org/resultsdb_api/api/v2.0' CORS_URL = 'https://bodhi.fedoraproject.org' {% endif %}