From: Sage Weil Date: Sat, 13 Jul 2013 20:09:15 +0000 (-0700) Subject: lock: make --summary list all machines by default X-Git-Tag: 1.1.0~2078^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=608d8a201aa996f36a1da6351882f4618eb7a3dc;p=teuthology.git lock: make --summary list all machines by default Signed-off-by: Sage Weil --- diff --git a/teuthology/lock.py b/teuthology/lock.py index b5350aa9d..390f36ea4 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -486,7 +486,7 @@ def scan_for_locks(ctx, machines): def do_summary(ctx): lockd = collections.defaultdict(lambda: [0,0,'unknown']) for l in list_locks(ctx): - if ctx.machine_type != 'all' and l['type'] != ctx.machine_type: + if ctx.machine_type and l['type'] != ctx.machine_type: continue who = l['locked_by'] if l['locked'] == 1 else '(free)', l['type'] lockd[who][0] += 1