mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13718 from runcom/fix-containers-json
SizeRW & SizeRootFs omitted if empty in /container/json call
This commit is contained in:
commit
fdd6175bca
2 changed files with 2 additions and 4 deletions
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue