mirror of
https://github.com/rancher/types.git
synced 2025-08-01 21:07:41 +00:00
Container ports mapper fix: append as a slice
This commit is contained in:
parent
99b97969af
commit
ff2b8b9f92
@ -37,7 +37,7 @@ func (n ContainerPorts) ToInternal(data map[string]interface{}) {
|
||||
path := []string{"containers", "{ARRAY}", "ports"}
|
||||
convert.Transform(data, path, func(obj interface{}) interface{} {
|
||||
if l, ok := obj.([]interface{}); ok {
|
||||
ports = append(ports, l)
|
||||
ports = append(ports, l...)
|
||||
}
|
||||
return obj
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user