mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
fix(host): generate ceph conf dup monHosts (#21691)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user