diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-21 16:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 16:05:47 +0200 |
commit | 6668b131eb02797c24d96cc62e1a78b8202ec04d (patch) | |
tree | 22c0495eb3cb27b8da96fd3ea2e7646c68095330 /pkg/domain | |
parent | a852afab2f37026fa8a45d115c61cd77fb3e7ef1 (diff) | |
parent | 141b34f6bec792e136c82f1e2d56e848f04d0f32 (diff) | |
download | podman-6668b131eb02797c24d96cc62e1a78b8202ec04d.tar.gz podman-6668b131eb02797c24d96cc62e1a78b8202ec04d.tar.bz2 podman-6668b131eb02797c24d96cc62e1a78b8202ec04d.zip |
Merge pull request #6304 from baude/v2remotehctests
Fix remote integration for healthchecks
Diffstat (limited to 'pkg/domain')
-rw-r--r-- | pkg/domain/infra/abi/healthcheck.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/domain/infra/abi/healthcheck.go b/pkg/domain/infra/abi/healthcheck.go index 351bf4f7e..4e925ef56 100644 --- a/pkg/domain/infra/abi/healthcheck.go +++ b/pkg/domain/infra/abi/healthcheck.go @@ -3,7 +3,6 @@ package abi import ( "context" - "github.com/containers/libpod/libpod" "github.com/containers/libpod/libpod/define" "github.com/containers/libpod/pkg/domain/entities" ) @@ -13,9 +12,9 @@ func (ic *ContainerEngine) HealthCheckRun(ctx context.Context, nameOrId string, if err != nil { return nil, err } - hcStatus := "unhealthy" - if status == libpod.HealthCheckSuccess { - hcStatus = "healthy" + hcStatus := define.HealthCheckUnhealthy + if status == define.HealthCheckSuccess { + hcStatus = define.HealthCheckHealthy } report := define.HealthCheckResults{ Status: hcStatus, |