From c8510d007ea7b40976df310dcabd307077f10550 Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:07:24 +0800 Subject: [PATCH] fix(host): generate ceph conf dup monHosts (#21687) --- pkg/util/cephutils/ceph.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/util/cephutils/ceph.go b/pkg/util/cephutils/ceph.go index 0a05a343eb..e378be81c3 100644 --- a/pkg/util/cephutils/ceph.go +++ b/pkg/util/cephutils/ceph.go @@ -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)) }