From 6fb7f9f2bda080110df7ba67b469b7f796c68dea Mon Sep 17 00:00:00 2001 From: vjeffrey Date: Tue, 26 Sep 2023 02:17:26 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20name=20on=20container=20as?= =?UTF-8?q?set=20(#1929)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/os/connection/docker_container.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/os/connection/docker_container.go b/providers/os/connection/docker_container.go index bd5f5d5eb3..4326f32648 100644 --- a/providers/os/connection/docker_container.go +++ b/providers/os/connection/docker_container.go @@ -255,6 +255,7 @@ func NewDockerEngineContainer(id uint32, conf *inventory.Config, asset *inventor conn.PlatformIdentifier = containerid.MondooContainerID(ci.ID) conn.Metadata.Name = containerid.ShortContainerImageID(ci.ID) conn.Metadata.Labels = ci.Labels + conn.Asset().Name = ci.Name return conn, nil } else { log.Debug().Msg("found stopped container " + ci.ID) @@ -267,6 +268,7 @@ func NewDockerEngineContainer(id uint32, conf *inventory.Config, asset *inventor conn.PlatformIdentifier = containerid.MondooContainerID(ci.ID) conn.Metadata.Name = containerid.ShortContainerImageID(ci.ID) conn.Metadata.Labels = ci.Labels + conn.Asset().Name = ci.Name return conn, nil } }