diff options
author | baude <bbaude@redhat.com> | 2018-05-31 17:11:50 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-01 08:37:55 +0000 |
commit | 8f14f966be628fb3e0d67f95f601a4a44de9a483 (patch) | |
tree | a7e1d90f4e613f149ff00c30976af992e8e2f5ce /pkg/varlinkapi | |
parent | 34886a79d63a0f43500bb9f56c32651d8a0de39a (diff) | |
download | podman-8f14f966be628fb3e0d67f95f601a4a44de9a483.tar.gz podman-8f14f966be628fb3e0d67f95f601a4a44de9a483.tar.bz2 podman-8f14f966be628fb3e0d67f95f601a4a44de9a483.zip |
return all inspect info for varlink containerinspect
when obtaining the inspect information for a container through varlink, we need
to extract more container related information by parsing the data through the
method 'GetCtrInspectInfo' which was previously only in podman's main.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #866
Approved by: rhatdan
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r-- | pkg/varlinkapi/containers.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/varlinkapi/containers.go b/pkg/varlinkapi/containers.go index 2d3a731e9..41263b52b 100644 --- a/pkg/varlinkapi/containers.go +++ b/pkg/varlinkapi/containers.go @@ -81,7 +81,11 @@ func (i *LibpodAPI) InspectContainer(call ioprojectatomicpodman.VarlinkCall, nam if err != nil { return call.ReplyErrorOccurred(err.Error()) } - b, err := json.Marshal(inspectInfo) + data, err := batchcontainer.GetCtrInspectInfo(ctr, inspectInfo) + if err != nil { + return call.ReplyErrorOccurred(err.Error()) + } + b, err := json.Marshal(data) if err != nil { return call.ReplyErrorOccurred(fmt.Sprintf("unable to serialize")) } |