Fix problem abandoning machines in BUILD.

Logic error prevented us from abandoning machines that were
taking too long to build.

Change-Id: I1457a7769b3733b4b18e6067294e62880cebb7eb
This commit is contained in:
James E. Blair
2012-04-02 09:31:33 -07:00
parent e10e1bfcd8
commit 7145349ef0

View File

@@ -106,9 +106,9 @@ def check_machine(client, machine, error_counts):
count)
if count >= 5:
raise Exception("Too many errors querying machine %s" % machine.id)
else:
if time.time() - machine.state_time >= ABANDON_TIMEOUT:
raise Exception("Waited too long for machine %s" % machine.id)
else:
if time.time() - machine.state_time >= ABANDON_TIMEOUT:
raise Exception("Waited too long for machine %s" % machine.id)
def main():