mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
libpod removal from main (phase 2)
this is phase 2 for the removal of libpod from main. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/containers/libpod/libpod/define"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
@ -169,7 +170,7 @@ func checkHealthCheckCanBeRun(c *Container) (HealthCheckStatus, error) {
|
||||
if err != nil {
|
||||
return HealthCheckInternalError, err
|
||||
}
|
||||
if cstate != ContainerStateRunning {
|
||||
if cstate != define.ContainerStateRunning {
|
||||
return HealthCheckContainerStopped, errors.Errorf("container %s is not running", c.ID())
|
||||
}
|
||||
if !c.HasHealthCheck() {
|
||||
|
Reference in New Issue
Block a user