moby--moby/daemon/cluster/convert
Yong Tang 9247e09944 Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus
This fix tries to address the issue raised in 36139 where
ExitCode and PID does not show up in Task.Status.ContainerStatus

The issue was caused by `json:",omitempty"` in PID and ExitCode
which interprate 0 as null.

This is confusion as ExitCode 0 does have a meaning.

This fix removes  `json:",omitempty"` in ExitCode and PID,
but changes ContainerStatus to pointer so that ContainerStatus
does not show up at all if no content. If ContainerStatus
does have a content, then ExitCode and PID will show up (even if
they are 0).

This fix fixes 36139.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-01-31 15:35:19 +00:00
..
config.go
container.go Added support for swarm service isolation mode 2017-10-30 16:16:18 +01:00
network.go Fix issue where network inspect does not show Created time in swarm scope 2018-01-23 18:26:51 +00:00
network_test.go Fix issue where network inspect does not show Created time in swarm scope 2018-01-23 18:26:51 +00:00
node.go Added support for Generic Resources 2017-07-24 17:49:56 -07:00
secret.go
service.go
service_test.go Added support for swarm service isolation mode 2017-10-30 16:16:18 +01:00
swarm.go
task.go Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus 2018-01-31 15:35:19 +00:00