Skip to content

Commit

Permalink
Merge pull request #24744 from mi4r/dev/mi4r/inspectID2name
Browse files Browse the repository at this point in the history
api: replace inspectID with name
  • Loading branch information
openshift-merge-bot[bot] authored Dec 3, 2024
2 parents 8ad45d4 + c76932f commit ab55e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handlers/libpod/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func GetImage(w http.ResponseWriter, r *http.Request) {
options := &libimage.InspectOptions{WithParent: true, WithSize: true}
inspect, err := newImage.Inspect(r.Context(), options)
if err != nil {
utils.Error(w, http.StatusInternalServerError, fmt.Errorf("failed in inspect image %s: %w", inspect.ID, err))
utils.Error(w, http.StatusInternalServerError, fmt.Errorf("failed in inspect image %s: %w", name, err))
return
}
utils.WriteResponse(w, http.StatusOK, inspect)
Expand Down

0 comments on commit ab55e2e

Please sign in to comment.