Fix etcd_address check in CSI

kv-update
Vitaliy Filippov 2023-12-06 00:28:18 +03:00
parent a1c7cc3d8d
commit 576e2ae608
1 changed files with 9 additions and 0 deletions

View File

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