mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9247e09944
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> |
||
---|---|---|
.. | ||
controllers/plugin | ||
convert | ||
executor | ||
provider | ||
cluster.go | ||
configs.go | ||
errors.go | ||
filters.go | ||
filters_test.go | ||
helpers.go | ||
listen_addr.go | ||
listen_addr_linux.go | ||
listen_addr_others.go | ||
networks.go | ||
noderunner.go | ||
nodes.go | ||
secrets.go | ||
services.go | ||
swarm.go | ||
tasks.go | ||
utils.go |