1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 00:46:53 +00:00

Revert "Container ports mapper fix: append as a slice"

This reverts commit ff2b8b9f92.
This commit is contained in:
Alena Prokharchyk
2018-02-27 19:32:26 -08:00
committed by Darren Shepherd
parent ba7380767d
commit dcfe466e8c

View File

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