Settings: Fix handling (#42497) (#42510)

* Settings: Fix handling

(cherry picked from commit 690ffdff56)

Co-authored-by: Joan López de la Franca Beltran <5459617+joanlopez@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-11-30 12:02:14 +01:00
committed by GitHub
co-authored by Joan López de la Franca Beltran
parent 0964999300
commit 288621b68a
2 changed files with 54 additions and 13 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func (o OSSImpl) Current() SettingsBag {
for _, section := range o.Cfg.Raw.Sections() {
settingsCopy[section.Name()] = make(map[string]string)
for _, key := range section.Keys() {
settingsCopy[section.Name()][key.Name()] = RedactedValue(key.Name(), key.Value())
settingsCopy[section.Name()][key.Name()] = RedactedValue(EnvKey(section.Name(), key.Name()), key.Value())
}
}