mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Update parsing of StringToStorageMount to use SplitN
This commit is contained in:
@@ -164,7 +164,7 @@ func StringToStorageMount(s string) StorageMount {
|
|||||||
m := make(map[string]string)
|
m := make(map[string]string)
|
||||||
options := strings.Split(s, ",")
|
options := strings.Split(s, ",")
|
||||||
for _, option := range options {
|
for _, option := range options {
|
||||||
keyVal := strings.Split(option, "=")
|
keyVal := strings.SplitN(option, "=", 2)
|
||||||
m[keyVal[0]] = keyVal[1]
|
m[keyVal[0]] = keyVal[1]
|
||||||
}
|
}
|
||||||
var sm StorageMount
|
var sm StorageMount
|
||||||
|
|||||||
Reference in New Issue
Block a user