Skip to content

Commit

Permalink
🐛 fix name on container asset (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Sep 26, 2023
1 parent 11c62bc commit 6fb7f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/os/connection/docker_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}
}
Expand Down

0 comments on commit 6fb7f9f

Please sign in to comment.