From 94b1c9f61d4d814cc607406a5237439244ae2acf Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 29 Jul 2016 10:53:04 -0600 Subject: [PATCH] Fix an obvious bug in sentinel() Signed-off-by: Zack Cerza --- teuthology/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/worker.py b/teuthology/worker.py index 84b9f33c8..32b3b53ff 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -25,7 +25,7 @@ stop_file_path = '/tmp/teuthology-stop-workers' def sentinel(path): - if not os.path.exists(restart_file_path): + if not os.path.exists(path): return False file_mtime = datetime.utcfromtimestamp(os.path.getmtime(path)) if file_mtime > start_time: -- 2.47.3