Fix updating the global profile and other bugs

This commit is contained in:
Daniel
2020-04-09 16:21:33 +02:00
parent ed2a67c127
commit a85fff6576
3 changed files with 8 additions and 8 deletions

View File

@@ -71,16 +71,16 @@ func updateGlobalConfigProfile(ctx context.Context, data interface{}) error {
// fill profile config options
for key, value := range cfgStringOptions {
profile.Config[key] = value
profile.Config[key] = value()
}
for key, value := range cfgStringArrayOptions {
profile.Config[key] = value
profile.Config[key] = value()
}
for key, value := range cfgIntOptions {
profile.Config[key] = value
profile.Config[key] = value()
}
for key, value := range cfgBoolOptions {
profile.Config[key] = value
profile.Config[key] = value()
}
// save profile