Merge pull request #2149 from claire921/r_health

Refactor Status.String() in health pkg
This commit is contained in:
Daniel Smith 2014-11-04 13:15:47 -08:00
commit 0ed0858d1d

View File

@ -103,10 +103,12 @@ func findPortByName(container api.Container, portName string) int {
}
func (s Status) String() string {
if s == Healthy {
switch s {
case Healthy:
return "healthy"
} else if s == Unhealthy {
case Unhealthy:
return "unhealthy"
default:
return "unknown"
}
return "unknown"
}