Skip to content

Commit

Permalink
Merge pull request #660 from rcmadhankumar/fix-659
Browse files Browse the repository at this point in the history
fix - get layers of image from Primary Location
  • Loading branch information
joaopapereira authored May 3, 2024
2 parents 438d5e0 + ab3e131 commit 826a778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/imgpkg/v1/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (r *refWithDescription) describeBundleRec(visitedImgs map[string]refWithDes
}

if showLayers {
layers, err = getImageLayersInfo(currentBundle.Image)
layers, err = getImageLayersInfo(currentBundle.PrimaryLocation())
if err != nil {
return desc.bundle, err
}
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,8 @@ images:
require.NoError(t, err)
})

// cleanup fake registry as it is not needed anymore
fakeRegistryBuilder.CleanUp()
logger.Section("executes describe command", func() {
stdout := imgpkg.Run(
[]string{"describe",
Expand Down

0 comments on commit 826a778

Please sign in to comment.