diff --git a/info/as_parser.go b/info/as_parser.go index 0aaf84f..2514c2a 100644 --- a/info/as_parser.go +++ b/info/as_parser.go @@ -1148,10 +1148,11 @@ func parseAllXDRConfig(rawMap map[string]string, cmd string) lib.Stats { if dcNamesRaw == "" { dcNames = []string{} + xdrConfigMap[ConfigDCContext] = make(lib.Stats) } else { dcNames = strings.Split(dcNamesRaw, ",") + xdrConfigMap[ConfigDCContext] = make(lib.Stats, len(dcNames)) } - xdrConfigMap[ConfigDCContext] = make(lib.Stats, len(dcNames)) for _, dc := range dcNames { dcMap := ParseIntoMap(rawMap[cmd+";dc="+dc], ";", "=")