]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
If lock_server is not set, check_lock() no-ops
authorZack Cerza <zack.cerza@inktank.com>
Wed, 29 Oct 2014 23:47:10 +0000 (17:47 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 3 Nov 2014 20:42:34 +0000 (13:42 -0700)
Signed-off-by: Zack Cerza <zack@cerza.org>
teuthology/task/internal.py

index d1cb95477a1a37b0cced8ed7328fa0f82f4e0c3e..0075d976c48c22ed30d25a6e2234b50b22be2808 100644 (file)
@@ -168,7 +168,7 @@ def check_lock(ctx, config):
     """
     Check lock status of remote machines.
     """
-    if ctx.config.get('check-locks') == False:
+    if not teuth_config.lock_server or ctx.config.get('check-locks') is False:
         log.info('Lock checking disabled.')
         return
     log.info('Checking locks...')