Fix disabling database access and teams API via command-line options. (#351)

This commit is contained in:
Oleksii Kliukin 2018-07-27 10:24:05 +02:00 committed by zerg-junior
parent 0181a1b5b1
commit f27833b5eb
1 changed files with 2 additions and 2 deletions

View File

@ -114,10 +114,10 @@ func (c *Controller) modifyConfigFromEnvironment() {
c.opConfig.WatchedNamespace = c.getEffectiveNamespace(os.Getenv("WATCHED_NAMESPACE"), c.opConfig.WatchedNamespace)
if c.config.NoDatabaseAccess {
c.opConfig.EnableDBAccess = c.config.NoDatabaseAccess
c.opConfig.EnableDBAccess = false
}
if c.config.NoTeamsAPI {
c.opConfig.EnableTeamsAPI = c.config.NoTeamsAPI
c.opConfig.EnableTeamsAPI = false
}
scalyrAPIKey := os.Getenv("SCALYR_API_KEY")
if scalyrAPIKey != "" {