From: Dan Mick Date: Wed, 5 Jun 2013 00:46:05 +0000 (-0700) Subject: teuthology-lock --summary: allow --machine-type=all X-Git-Tag: 1.1.0~2129^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e4eb4aa23b66a5b33cf6ff14305ae8c3d328fb50;p=teuthology.git teuthology-lock --summary: allow --machine-type=all Signed-off-by: Dan Mick --- diff --git a/teuthology/lock.py b/teuthology/lock.py index 146f10859b..66f73c1edc 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -475,7 +475,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 l['type'] != ctx.machine_type: + if ctx.machine_type != 'all' and l['type'] != ctx.machine_type: continue who = l['locked_by'] if l['locked'] == 1 else '(free)', l['type'] lockd[who][0] += 1