mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
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:
parent
2bcbf1846a
commit
77cf9f4b68
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user