mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Merge pull request #24744 from mi4r/dev/mi4r/inspectID2name
api: replace inspectID with name
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user