From: Dan Mick Date: Mon, 29 Jun 2015 21:30:43 +0000 (-0700) Subject: lock.py: handle statuses with no description X-Git-Tag: 1.1.0~898^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bcdd35da94b69099b831aea3cb4661529999a3fa;p=teuthology.git lock.py: handle statuses with no description Signed-off-by: Dan Mick --- diff --git a/teuthology/lock.py b/teuthology/lock.py index 9b5796669..5f6810640 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -255,7 +255,8 @@ def main(ctx): lambda s: s['locked'] == (ctx.locked == 'true')) statuses = winnow(statuses, ctx.desc, 'description') statuses = winnow(statuses, ctx.desc_pattern, 'description', - lambda s: ctx.desc_pattern in s['description']) + lambda s: s['description'] and \ + ctx.desc_pattern in s['description']) if ctx.json_query: statuses = json_matching_statuses(ctx.json_query, statuses) statuses = winnow(statuses, ctx.os_type, 'os_type')