diff options
author | baude <bbaude@redhat.com> | 2019-03-26 08:08:40 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-03-26 10:14:58 -0500 |
commit | 7f2221d48f7d0df8cc5beed70ff5dbc57bca3529 (patch) | |
tree | 7676e6ac3bd0ab34970d7a8f2616e4ebc5cd7ad8 /pkg/varlinkapi/containers.go | |
parent | 60b009af4ef1415b83e0419ba41381912693ab86 (diff) | |
download | podman-7f2221d48f7d0df8cc5beed70ff5dbc57bca3529.tar.gz podman-7f2221d48f7d0df8cc5beed70ff5dbc57bca3529.tar.bz2 podman-7f2221d48f7d0df8cc5beed70ff5dbc57bca3529.zip |
size is optional for container inspection
on the remote client, if a user wants to know the rootfs size of a
container, a -s should be passed. this corrects a behavior where size
was shown by default.
Fixes #2765
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/varlinkapi/containers.go')
-rw-r--r-- | pkg/varlinkapi/containers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/varlinkapi/containers.go b/pkg/varlinkapi/containers.go index 3185ba0e9..7a6ae3507 100644 --- a/pkg/varlinkapi/containers.go +++ b/pkg/varlinkapi/containers.go @@ -519,12 +519,12 @@ func (i *LibpodAPI) ContainerArtifacts(call iopodman.VarlinkCall, name, artifact } // ContainerInspectData returns the inspect data of a container in string format -func (i *LibpodAPI) ContainerInspectData(call iopodman.VarlinkCall, name string) error { +func (i *LibpodAPI) ContainerInspectData(call iopodman.VarlinkCall, name string, size bool) error { ctr, err := i.Runtime.LookupContainer(name) if err != nil { return call.ReplyContainerNotFound(name, err.Error()) } - data, err := ctr.Inspect(true) + data, err := ctr.Inspect(size) if err != nil { return call.ReplyErrorOccurred("unable to inspect container") } |