mirror of
https://github.com/moby/moby.git
synced 2025-08-01 05:47:11 +03:00
SizeRW & SizeRootFs omitted if empty in /container/json call
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
@ -107,8 +107,8 @@ type Container struct {
|
|||||||
Command string
|
Command string
|
||||||
Created int
|
Created int
|
||||||
Ports []Port
|
Ports []Port
|
||||||
SizeRw int
|
SizeRw int `json:",omitempty"`
|
||||||
SizeRootFs int
|
SizeRootFs int `json:",omitempty"`
|
||||||
Labels map[string]string
|
Labels map[string]string
|
||||||
Status string
|
Status string
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,6 @@ func (s *DockerSuite) TestContainerApiGetJSONNoFieldsOmitted(c *check.C) {
|
|||||||
"Command",
|
"Command",
|
||||||
"Created",
|
"Created",
|
||||||
"Ports",
|
"Ports",
|
||||||
"SizeRw",
|
|
||||||
"SizeRootFs",
|
|
||||||
"Labels",
|
"Labels",
|
||||||
"Status",
|
"Status",
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user