Fix hierarchical config handling

This commit is contained in:
Daniel
2020-04-28 09:56:23 +02:00
parent 6d6b03cac3
commit 97a8475364
3 changed files with 16 additions and 5 deletions

View File

@@ -237,7 +237,7 @@ func (profile *Profile) addEndpointyEntry(cfgKey, newEntry string) {
endpointList = make([]string, 0, 1)
}
endpointList = append(endpointList, newEntry)
profile.Config[cfgKey] = endpointList
config.PutValueIntoHierarchicalConfig(profile.Config, cfgKey, endpointList)
profile.Unlock()
err := profile.Save()