Commit 8e3992b3 by Kevin Falcone Committed by GitHub

Merge pull request #3182 from edx/jibsheet/protect-against-index-out-of-range

Sometimes abbey builds fail waiting on the status checks
parents 57d1d748 6e366011
......@@ -655,7 +655,7 @@ def launch_and_configure(ec2_args):
system_start = time.time()
for _ in xrange(EC2_STATUS_TIMEOUT):
status = ec2.get_all_instance_status(inst.id)
if status[0].system_status.status == u'ok':
if status and status[0].system_status.status == u'ok':
system_delta = time.time() - system_start
run_summary.append(('EC2 Status Checks', system_delta))
print "[ OK ] {:0>2.0f}:{:0>2.0f}".format(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment