Fix etcd_address check in CSI
parent
a1c7cc3d8d
commit
576e2ae608
|
@ -97,6 +97,15 @@ func GetConnectionParams(params map[string]string) (map[string]string, error)
|
||||||
}
|
}
|
||||||
case []string:
|
case []string:
|
||||||
etcdUrl = config["etcd_address"].([]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)
|
if (len(etcdUrl) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue