From 6945ac2d02adbe2931c9e8756ecbb7496b43081a Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 3 Jun 2015 23:13:56 +0200 Subject: [PATCH] SizeRW & SizeRootFs omitted if empty in /container/json call Signed-off-by: Antonio Murdaca --- api/types/types.go | 4 ++-- integration-cli/docker_api_containers_test.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/types/types.go b/api/types/types.go index d33e38d584..4337c58355 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -107,8 +107,8 @@ type Container struct { Command string Created int Ports []Port - SizeRw int - SizeRootFs int + SizeRw int `json:",omitempty"` + SizeRootFs int `json:",omitempty"` Labels map[string]string Status string } diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index d8fa1d71da..025206514a 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -71,8 +71,6 @@ func (s *DockerSuite) TestContainerApiGetJSONNoFieldsOmitted(c *check.C) { "Command", "Created", "Ports", - "SizeRw", - "SizeRootFs", "Labels", "Status", }