mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: use setting.Dev in place of "development" string (#74391)
chore: use development variable instead of string
This commit is contained in:
parent
cc1205d6ba
commit
fa229661e8
@ -109,7 +109,7 @@ func (s *ModuleServer) Run() error {
|
||||
s.log.Debug("Waiting on services...")
|
||||
|
||||
// Only allow individual dskit modules to run in dev mode.
|
||||
if s.cfg.Env != "development" {
|
||||
if s.cfg.Env != setting.Dev {
|
||||
if len(s.cfg.Target) > 1 || s.cfg.Target[0] != "all" {
|
||||
s.log.Error("dskit module targeting is only supported in dev mode. Falling back to 'all'")
|
||||
s.cfg.Target = []string{"all"}
|
||||
|
Loading…
Reference in New Issue
Block a user