Refactor Status.String() in health pkg

pull/6/head
Claire Li 2014-11-03 21:57:01 -08:00
parent d6e36a4756
commit 5e3193afd1
1 changed files with 5 additions and 3 deletions

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"
}