Fix workers to not always be marked as unhealthy

This commit is contained in:
Joseph Schorr 2014-08-08 15:24:19 -04:00
parent 6f804c222a
commit 1b7379df29

View file

@ -45,7 +45,8 @@ def matches_system_error(status_str):
for match in KNOWN_MATCHES: for match in KNOWN_MATCHES:
# 4 because we might have a Unix control code at the start. # 4 because we might have a Unix control code at the start.
if status_str.find(match[0:len(match) + 4]) <= 4: found = status_str.find(match[0:len(match) + 4])
if found >= 0 and found <= 4:
return True return True
return False return False