summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-11 05:54:16 -0800
committerGitHub <noreply@github.com>2019-01-11 05:54:16 -0800
commit9368c24be6f289d21a0065df24471268ead59664 (patch)
treeee9aec7d2e4a04a4310dbd54730c9aaa7a2dfe46 /pkg
parentb3eb23d671425775673f86bd02b9c89ef781f590 (diff)
parentc8e3dd8a9ce7ba7948a5db88608a57de07599c7b (diff)
downloadpodman-9368c24be6f289d21a0065df24471268ead59664.tar.gz
podman-9368c24be6f289d21a0065df24471268ead59664.tar.bz2
podman-9368c24be6f289d21a0065df24471268ead59664.zip
Merge pull request #2113 from baude/remoteimages
remote-client support for images
Diffstat (limited to 'pkg')
-rw-r--r--pkg/varlinkapi/images.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index 8f8934025..370fd091a 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -47,6 +47,10 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error {
}
size, _ := image.Size(getContext())
+ isParent, err := image.IsParent()
+ if err != nil {
+ return call.ReplyErrorOccurred(err.Error())
+ }
i := iopodman.ImageInList{
Id: image.ID(),
@@ -58,6 +62,7 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error {
VirtualSize: image.VirtualSize,
Containers: int64(len(containers)),
Labels: labels,
+ IsParent: isParent,
}
imageList = append(imageList, i)
}