From ff2b8b9f922cf3594dc36343f1cd33d3d3749db3 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Mon, 26 Feb 2018 22:00:33 -0800 Subject: [PATCH] Container ports mapper fix: append as a slice --- mapper/container_ports.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapper/container_ports.go b/mapper/container_ports.go index a5b77c0f..868686b8 100644 --- a/mapper/container_ports.go +++ b/mapper/container_ports.go @@ -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 })