mirror of https://github.com/docker/docs.git
api: "Host Down" instead of "Pending" as a status
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
8c9449899b
commit
dd48440d98
|
@ -233,7 +233,7 @@ func getContainersJSON(c *context, w http.ResponseWriter, r *http.Request) {
|
||||||
// `Status()` will generate a new one
|
// `Status()` will generate a new one
|
||||||
tmp.Status = container.Info.State.String()
|
tmp.Status = container.Info.State.String()
|
||||||
if !container.Engine.IsHealthy() {
|
if !container.Engine.IsHealthy() {
|
||||||
tmp.Status = "Pending"
|
tmp.Status = "Host Down"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Overwrite labels with the ones we have in the config.
|
// Overwrite labels with the ones we have in the config.
|
||||||
|
|
Loading…
Reference in New Issue