From 3e5762c006602231e129721d63f26cdf2fe9b124 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 29 Oct 2014 17:47:10 -0600 Subject: [PATCH] If lock_server is not set, check_lock() no-ops Signed-off-by: Zack Cerza --- teuthology/task/internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index d1cb95477a..0075d976c4 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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...') -- 2.39.5