mirror of
https://github.com/grafana/grafana.git
synced 2025-01-04 13:17:16 -06:00
Chore: Add stack ID + slug to cfg (#75227)
* add stack ID + slug to cfg * add to environment section
This commit is contained in:
parent
224e2c9efb
commit
e9e0e321b6
@ -409,6 +409,9 @@ type Cfg struct {
|
||||
|
||||
Env string
|
||||
|
||||
StackID string
|
||||
Slug string
|
||||
|
||||
ForceMigration bool
|
||||
|
||||
// Analytics
|
||||
@ -1034,6 +1037,8 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
|
||||
}
|
||||
Env = valueAsString(iniFile.Section(""), "app_mode", "development")
|
||||
cfg.Env = Env
|
||||
cfg.StackID = valueAsString(iniFile.Section("environment"), "stack_id", "")
|
||||
cfg.Slug = valueAsString(iniFile.Section("environment"), "slug", "")
|
||||
cfg.ForceMigration = iniFile.Section("").Key("force_migration").MustBool(false)
|
||||
InstanceName = valueAsString(iniFile.Section(""), "instance_name", "unknown_instance_name")
|
||||
plugins := valueAsString(iniFile.Section("paths"), "plugins", "")
|
||||
|
Loading…
Reference in New Issue
Block a user