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) {