]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
lock: make --summary list all machines by default
authorSage Weil <sage@inktank.com>
Sat, 13 Jul 2013 20:09:15 +0000 (13:09 -0700)
committerSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 03:54:15 +0000 (20:54 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/lock.py

index b5350aa9dd9687e4b8ed8c905b6b6167503a2d0f..390f36ea45947fb08672b2f487c07b93dc05eadb 100644 (file)
@@ -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