Set omitempty for IP and PublicPort to conform w/ API 1.18

Signed-off-by: Darren Shepherd <darren@rancher.com>
(cherry picked from commit 09de92b891)
This commit is contained in:
Darren Shepherd
2015-06-12 10:46:07 -07:00
committed by Jessica Frazelle
parent 84b21b55b9
commit 64552d0b49
2 changed files with 42 additions and 2 deletions
+2 -2
View File
@@ -94,9 +94,9 @@ type ImageInspect struct {
// GET "/containers/json"
type Port struct {
IP string
IP string `json:",omitempty"`
PrivatePort int
PublicPort int
PublicPort int `json:",omitempty"`
Type string
}