summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-03-27 10:07:06 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-27 14:46:17 +0000
commit26d7e3c7b85e28c4e42998c90fdcc14079f13eef (patch)
treeb5f29ad6e00b832bb13b072e11db6ba5187601c8 /libpod/runtime_img.go
parent304bf53c28301a8dfd126f2304e02df5472e56b1 (diff)
downloadpodman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.tar.gz
podman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.tar.bz2
podman-26d7e3c7b85e28c4e42998c90fdcc14079f13eef.zip
Fix some minor issues lint has been picking up
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #556 Approved by: baude
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index 215c0afed..b891fcde9 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -98,11 +98,11 @@ func (r *Runtime) RemoveImage(image *image.Image, force bool) (string, error) {
if force {
for _, ctr := range imageCtrs {
if err := r.removeContainer(ctr, true); err != nil {
- return "", errors.Wrapf(err, "error removing image %s: container %s using image could not be removed", image.ID, ctr.ID())
+ return "", errors.Wrapf(err, "error removing image %s: container %s using image could not be removed", image.ID(), ctr.ID())
}
}
} else {
- return "", fmt.Errorf("could not remove image %s as it is being used by %d containers", image.ID, len(imageCtrs))
+ return "", fmt.Errorf("could not remove image %s as it is being used by %d containers", image.ID(), len(imageCtrs))
}
}