cmd/kpod/rmi.go: Fix deletion by ID

When deleting by ID, kpod rmi was only "untagging" the image
and not actually removing it.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2017-09-11 16:52:57 -05:00
parent c56dcf2cb5
commit f0b94a41e8

View file

@ -79,10 +79,10 @@ func rmiCmd(c *cli.Context) error {
if err2 != nil { if err2 != nil {
return err return err
} }
fmt.Printf("untagged: %s", name) fmt.Printf("untagged: %s\n", name)
} }
if len(image.Names) > 0 { if len(image.Names) > 1 {
continue continue
} }
id, err := images.RemoveImage(image, store) id, err := images.RemoveImage(image, store)