settings: Only create staging Nagios bots in production.

In ce528c2b5f, we added these bots,
which were intended as a setup convenience in production, but ended up
breaking the test suite.
This commit is contained in:
Tim Abbott 2016-10-26 09:21:24 -07:00
parent 63f0e04621
commit 88269c7228
1 changed files with 7 additions and 3 deletions

View File

@ -528,15 +528,19 @@ INTERNAL_BOTS = [{'var_name': 'NOTIFICATION_BOT',
{'var_name': 'NAGIOS_RECEIVE_BOT', {'var_name': 'NAGIOS_RECEIVE_BOT',
'email_template': 'nagios-receive-bot@%s', 'email_template': 'nagios-receive-bot@%s',
'name': 'Nagios Receive Bot'}, 'name': 'Nagios Receive Bot'},
{'var_name': 'WELCOME_BOT',
'email_template': 'welcome-bot@%s',
'name': 'Welcome Bot'}]
if PRODUCTION:
INTERNAL_BOTS += [
{'var_name': 'NAGIOS_STAGING_SEND_BOT', {'var_name': 'NAGIOS_STAGING_SEND_BOT',
'email_template': 'nagios-staging-send-bot@%s', 'email_template': 'nagios-staging-send-bot@%s',
'name': 'Nagios Staging Send Bot'}, 'name': 'Nagios Staging Send Bot'},
{'var_name': 'NAGIOS_STAGING_RECEIVE_BOT', {'var_name': 'NAGIOS_STAGING_RECEIVE_BOT',
'email_template': 'nagios-staging-receive-bot@%s', 'email_template': 'nagios-staging-receive-bot@%s',
'name': 'Nagios Staging Receive Bot'}, 'name': 'Nagios Staging Receive Bot'},
{'var_name': 'WELCOME_BOT', ]
'email_template': 'welcome-bot@%s',
'name': 'Welcome Bot'}]
INTERNAL_BOT_DOMAIN = "zulip.com" INTERNAL_BOT_DOMAIN = "zulip.com"