From 7145349ef095dcb4f44d551fb116691f9e5c45ab Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 2 Apr 2012 09:31:33 -0700 Subject: [PATCH] Fix problem abandoning machines in BUILD. Logic error prevented us from abandoning machines that were taking too long to build. Change-Id: I1457a7769b3733b4b18e6067294e62880cebb7eb --- devstack-vm-launch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devstack-vm-launch.py b/devstack-vm-launch.py index 9903e74d..c034a327 100755 --- a/devstack-vm-launch.py +++ b/devstack-vm-launch.py @@ -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():