From 9657cd6c15372f8c655ec13ce4f0310ff5d6a7a1 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 11 May 2018 09:39:34 -0500 Subject: Fix varlink remove image force Fixes a bug where the force bool was being ignored when deleting images via the varlink interface. Also, minor fix to the docs to add a line break between methods and types in the doc index. Signed-off-by: baude Closes: #753 Approved by: rhatdan --- pkg/varlinkapi/images.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go index 981a4d9a0..dc246fd7a 100644 --- a/pkg/varlinkapi/images.go +++ b/pkg/varlinkapi/images.go @@ -170,10 +170,11 @@ func (i *LibpodAPI) RemoveImage(call ioprojectatomicpodman.VarlinkCall, name str if err != nil { return call.ReplyImageNotFound(name) } - if err := newImage.Remove(force); err != nil { + imageID, err := runtime.RemoveImage(newImage, force) + if err != nil { return call.ReplyErrorOccurred(err.Error()) } - return call.ReplyRemoveImage(newImage.ID()) + return call.ReplyRemoveImage(imageID) } // SearchImage searches all registries configured in /etc/containers/registries.conf for an image -- cgit v1.2.3-54-g00ecf