Skip to content

Commit

Permalink
fix: docker scout now shows imageTag instead of imageId under Targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayd-san committed Jun 14, 2024
1 parent 448fa3b commit 4d8c143
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tui/tabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case key.Matches(msg, ImageKeymap.Scout):
curItem := m.getSelectedItem()
if curItem != nil {
imageId := curItem.(dockerRes).getId()
dockerRes := curItem.(dockerRes)
imageInfo := dockerRes.(imageItem)
imageName := imageInfo.RepoTags[0]

f := func() (*dockercmd.ScoutData, error) {

scoutData, err := m.dockerClient.ScoutImage(imageId)
scoutData, err := m.dockerClient.ScoutImage(imageName)

if err != nil {
m.possibleLongRunningOpErrorChan <- err
Expand Down

0 comments on commit 4d8c143

Please sign in to comment.