misc: Fix for case status['description'] == None

Skip the machine that has a description, but the
value is None.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>
This commit is contained in:
Sam Lang 2013-04-17 17:38:36 -05:00
parent 2bcbf1846a
commit 77cf9f4b68

View File

@ -38,7 +38,7 @@ def get_testdir(ctx):
jobids = {}
for machine in ctx.config['targets'].iterkeys():
status = lockstatus.get_status(ctx, machine)
if status is None or 'description' not in status:
if status is None or 'description' not in status or status['description'] is None:
continue
jid = status['description'].split('/')[-1]
if jid is None or jid == 'None':