mirror of https://github.com/containers/podman.git
varlink ImageRemove should always return image ID
When removing an image via varlink, we should always return the ID of the image even in the case where the image has multiple repository names and one was only untagged. Reported by jhonce during integration testing. Signed-off-by: baude <bbaude@redhat.com> Closes: #1191 Approved by: jwhonce
This commit is contained in:
parent
00caebde61
commit
5b9c60cc10
|
@ -382,11 +382,11 @@ func (i *LibpodAPI) RemoveImage(call ioprojectatomicpodman.VarlinkCall, name str
|
|||
if err != nil {
|
||||
return call.ReplyImageNotFound(name)
|
||||
}
|
||||
imageID, err := runtime.RemoveImage(ctx, newImage, force)
|
||||
_, err = runtime.RemoveImage(ctx, newImage, force)
|
||||
if err != nil {
|
||||
return call.ReplyErrorOccurred(err.Error())
|
||||
}
|
||||
return call.ReplyRemoveImage(imageID)
|
||||
return call.ReplyRemoveImage(newImage.ID())
|
||||
}
|
||||
|
||||
// SearchImage searches all registries configured in /etc/containers/registries.conf for an image
|
||||
|
|
Loading…
Reference in New Issue