aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-23 11:34:42 -0400
committerGitHub <noreply@github.com>2021-09-23 11:34:42 -0400
commite8fc990aadf438e3b138d77b1bb4500cc60a7738 (patch)
tree641a8b9e92c3a986d38a42068cc092af6b72a736 /pkg/api/handlers/compat
parentc2beea695857b71250c87eb9ab799f7773b8d251 (diff)
parent1199733754b1185d0d2a7a3d832c57565864d0f4 (diff)
downloadpodman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.tar.gz
podman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.tar.bz2
podman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.zip
Merge pull request #11654 from Luap99/health-docker
podman inspect add State.Health field for docker compat
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/containers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go
index a15fdb553..18005e24a 100644
--- a/pkg/api/handlers/compat/containers.go
+++ b/pkg/api/handlers/compat/containers.go
@@ -410,11 +410,11 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
if l.HasHealthCheck() && state.Status != "created" {
state.Health = &types.Health{
- Status: inspect.State.Healthcheck.Status,
- FailingStreak: inspect.State.Healthcheck.FailingStreak,
+ Status: inspect.State.Health.Status,
+ FailingStreak: inspect.State.Health.FailingStreak,
}
- log := inspect.State.Healthcheck.Log
+ log := inspect.State.Health.Log
for _, item := range log {
res := &types.HealthcheckResult{}