From 576e2ae608da3fff54e2466eb63181e1ad46ec29 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 6 Dec 2023 00:28:18 +0300 Subject: [PATCH] Fix etcd_address check in CSI --- csi/src/controllerserver.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/csi/src/controllerserver.go b/csi/src/controllerserver.go index 4b213a25..85a5eb68 100644 --- a/csi/src/controllerserver.go +++ b/csi/src/controllerserver.go @@ -97,6 +97,15 @@ func GetConnectionParams(params map[string]string) (map[string]string, error) } case []string: etcdUrl = config["etcd_address"].([]string) + case []interface{}: + for _, url := range config["etcd_address"].([]interface{}) + { + s, ok := url.(string) + if (ok) + { + etcdUrl = append(etcdUrl, s) + } + } } if (len(etcdUrl) == 0) {