Fix docker exec logic. Without this patch, kubelet was not receiving any output from docker exec

and was incorrectly handling the output.
This commit is contained in:
Vishnu Kannan
2015-05-04 16:01:32 -07:00
parent fbe3ec7513
commit ec01265643
2 changed files with 6 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ func (pr execProber) Probe(e uexec.Cmd) (probe.Result, error) {
if err != nil {
return probe.Unknown, err
}
if strings.ToLower(string(data)) != defaultHealthyOutput {
if !strings.HasPrefix(strings.ToLower(string(data)), defaultHealthyOutput) {
return probe.Failure, nil
}
return probe.Success, nil