From 6da940f3fd9dd59b97ea608d587e532dc7fceb61 Mon Sep 17 00:00:00 2001 From: Matt Jia Date: Wed, 17 May 2017 11:59:57 +1000 Subject: [PATCH] waiverdb role:fix the conditional check in the settings.py template --- roles/waiverdb/templates/etc/waiverdb/settings.py.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/waiverdb/templates/etc/waiverdb/settings.py.j2 b/roles/waiverdb/templates/etc/waiverdb/settings.py.j2 index 0ce4225333..df7d8084b9 100644 --- a/roles/waiverdb/templates/etc/waiverdb/settings.py.j2 +++ b/roles/waiverdb/templates/etc/waiverdb/settings.py.j2 @@ -9,6 +9,8 @@ SQLALCHEMY_DATABASE_URI = 'postgresql://waiverdb-user@:{{ waiverdb_db_port }}/wa OIDC_CLIENT_SECRETS = '/etc/waiverdb/client_secrets.json' OIDC_REQUIRED_SCOPE = 'https://waiverdb.fedoraproject.org/oidc/create-waiver' OIDC_RESOURCE_SERVER_ONLY = True -{% if env != "production" and env != "staging" %} +{% if env == "production" or env == "staging" %} +ZEROMQ_PUBLISH = True +{% else %} ZEROMQ_PUBLISH = False {% endif %}