summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-12-07 13:35:46 -0600
committerbaude <bbaude@redhat.com>2018-12-09 11:16:33 -0600
commit078fd071c1ce9aa4063a0d640d15feafcabc5089 (patch)
tree4d35d2b8f4bd4e5f377bd35bfa2822ed49890f1c /pkg
parentd6ce797edb415c1a0c23e8d72ed2771586b8c219 (diff)
downloadpodman-078fd071c1ce9aa4063a0d640d15feafcabc5089.tar.gz
podman-078fd071c1ce9aa4063a0d640d15feafcabc5089.tar.bz2
podman-078fd071c1ce9aa4063a0d640d15feafcabc5089.zip
add more example usage to varlink endpoints
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/varlinkapi/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index cb3b1c73b..a5673f636 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -508,7 +508,7 @@ func (i *LibpodAPI) PullImage(call iopodman.VarlinkCall, name string) error {
// ImageExists returns bool as to whether the input image exists in local storage
func (i *LibpodAPI) ImageExists(call iopodman.VarlinkCall, name string) error {
_, err := i.Runtime.ImageRuntime().NewFromLocal(name)
- if errors.Cause(err) == libpod.ErrNoSuchImage {
+ if errors.Cause(err) == image.ErrNoSuchImage {
return call.ReplyImageExists(1)
}
if err != nil {