diff options
author | Brent Baude <bbaude@redhat.com> | 2020-05-20 14:43:01 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-05-20 14:43:01 -0500 |
commit | 141b34f6bec792e136c82f1e2d56e848f04d0f32 (patch) | |
tree | 2751c98227d110c29129e3798d7255d83e983a55 /pkg/domain/infra | |
parent | 09f8f14b4f7d09946d3d5cfc5460ec9923f7da59 (diff) | |
download | podman-141b34f6bec792e136c82f1e2d56e848f04d0f32.tar.gz podman-141b34f6bec792e136c82f1e2d56e848f04d0f32.tar.bz2 podman-141b34f6bec792e136c82f1e2d56e848f04d0f32.zip |
Fix remote integration for healthchecks
the one remaining test that is still skipped do to missing exec function
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-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, |