diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-11 18:09:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 18:09:36 -0400 |
commit | 72662f790bad0a3dc26a6a1498b6daa936702bb6 (patch) | |
tree | 602f6d9d4264ac84e4365df9edfd87767b7175a7 /cmd/podman | |
parent | ec3037062d1f9a5ece00ffd465c0f815c06f1b5c (diff) | |
parent | 4fbc5b8fe75b3d486a97c013af7a6b085292b46a (diff) | |
download | podman-72662f790bad0a3dc26a6a1498b6daa936702bb6.tar.gz podman-72662f790bad0a3dc26a6a1498b6daa936702bb6.tar.bz2 podman-72662f790bad0a3dc26a6a1498b6daa936702bb6.zip |
Merge pull request #11525 from rhatdan/healthcheck
Stop outputting 'healthy' on healthcheck
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/healthcheck/run.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/healthcheck/run.go b/cmd/podman/healthcheck/run.go index fe8dc2573..b03a07bc4 100644 --- a/cmd/podman/healthcheck/run.go +++ b/cmd/podman/healthcheck/run.go @@ -6,6 +6,7 @@ import ( "github.com/containers/podman/v3/cmd/podman/common" "github.com/containers/podman/v3/cmd/podman/registry" + "github.com/containers/podman/v3/libpod/define" "github.com/containers/podman/v3/pkg/domain/entities" "github.com/spf13/cobra" ) @@ -34,9 +35,9 @@ func run(cmd *cobra.Command, args []string) error { if err != nil { return err } - if response.Status == "unhealthy" { + if response.Status == define.HealthCheckUnhealthy { registry.SetExitCode(1) + fmt.Println(response.Status) } - fmt.Println(response.Status) return err } |