|
|
@ -427,6 +427,10 @@ func (a adminAPIHandlers) GetConfigHandler(w http.ResponseWriter, r *http.Reques |
|
|
|
|
|
|
|
|
|
|
|
var s strings.Builder |
|
|
|
var s strings.Builder |
|
|
|
hkvs := config.HelpSubSysMap[""] |
|
|
|
hkvs := config.HelpSubSysMap[""] |
|
|
|
|
|
|
|
var count int |
|
|
|
|
|
|
|
for _, hkv := range hkvs { |
|
|
|
|
|
|
|
count += len(cfg[hkv.Key]) |
|
|
|
|
|
|
|
} |
|
|
|
for _, hkv := range hkvs { |
|
|
|
for _, hkv := range hkvs { |
|
|
|
v := cfg[hkv.Key] |
|
|
|
v := cfg[hkv.Key] |
|
|
|
for target, kv := range v { |
|
|
|
for target, kv := range v { |
|
|
@ -460,9 +464,12 @@ func (a adminAPIHandlers) GetConfigHandler(w http.ResponseWriter, r *http.Reques |
|
|
|
} |
|
|
|
} |
|
|
|
s.WriteString(config.KvSpaceSeparator) |
|
|
|
s.WriteString(config.KvSpaceSeparator) |
|
|
|
s.WriteString(kv.String()) |
|
|
|
s.WriteString(kv.String()) |
|
|
|
|
|
|
|
count-- |
|
|
|
|
|
|
|
if count > 0 { |
|
|
|
s.WriteString(config.KvNewline) |
|
|
|
s.WriteString(config.KvNewline) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
password := globalActiveCred.SecretKey |
|
|
|
password := globalActiveCred.SecretKey |
|
|
|
econfigData, err := madmin.EncryptData(password, []byte(s.String())) |
|
|
|
econfigData, err := madmin.EncryptData(password, []byte(s.String())) |
|
|
|