From: Sage Weil Date: Tue, 12 Mar 2013 16:49:42 +0000 (-0700) Subject: lock: tolerate description of None X-Git-Tag: 1.1.0~2255 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fd1e083c619ed270c62391184129c4cf35f72890;p=teuthology.git lock: tolerate description of None Signed-off-by: Sage Weil --- diff --git a/teuthology/lock.py b/teuthology/lock.py index 3c092f6a7a..4e89ebf440 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -299,7 +299,8 @@ Lock, unlock, or query lock status of machines. if status['description'] == ctx.desc] if ctx.desc_pattern is not None: statuses = [status for status in statuses \ - if status['description'].find(ctx.desc_pattern) >= 0] + if status['description'] is not None and \ + status['description'].find(ctx.desc_pattern) >= 0] if ctx.list: if ctx.brief: for s in statuses: