api: "Host Down" instead of "Pending" as a status

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-17 01:39:05 -07:00
parent 8c9449899b
commit dd48440d98
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ func getContainersJSON(c *context, w http.ResponseWriter, r *http.Request) {
// `Status()` will generate a new one
tmp.Status = container.Info.State.String()
if !container.Engine.IsHealthy() {
tmp.Status = "Pending"
tmp.Status = "Host Down"
}
// Overwrite labels with the ones we have in the config.