fix(host): generate ceph conf dup monHosts (#21691)

This commit is contained in:
wanyaoqi
2024-11-26 14:07:53 +08:00
committed by GitHub
parent c623f86c77
commit 4f61339ce1
-1
View File
@@ -253,7 +253,6 @@ func NewClient(monHost, key, pool string, enableMessengerV2 bool) (*CephClient,
monHosts = append(monHosts, fmt.Sprintf(`[v2:%s:3300/0,v1:%s:6789/0]`, monHost, monHost))
}
} else {
monHosts := []string{}
for _, monHost := range strings.Split(client.monHost, ",") {
monHosts = append(monHosts, fmt.Sprintf(`[%s]`, monHost))
}