mirror of
https://github.com/ceph/ceph
synced 2025-02-15 23:07:55 +00:00
teuthology-lock --summary: allow --machine-type=all
Somehow this got lost; putting it back
Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit e4eb4aa23b
)
This commit is contained in:
parent
0911e5493b
commit
a3c1122658
@ -483,7 +483,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
|
||||
|
Loading…
Reference in New Issue
Block a user