CNI_ARGS: use ';' to split args as documented
This commit is contained in:
parent
fbd828cf60
commit
8b634b90da
@ -14,7 +14,7 @@ func LoadArgs(args string, container interface{}) error {
|
|||||||
|
|
||||||
containerValue := reflect.ValueOf(container)
|
containerValue := reflect.ValueOf(container)
|
||||||
|
|
||||||
pairs := strings.Split(args, ",")
|
pairs := strings.Split(args, ";")
|
||||||
for _, pair := range pairs {
|
for _, pair := range pairs {
|
||||||
kv := strings.Split(pair, "=")
|
kv := strings.Split(pair, "=")
|
||||||
if len(kv) != 2 {
|
if len(kv) != 2 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user