From: Zack Cerza Date: Fri, 29 Jul 2016 16:53:04 +0000 (-0600) Subject: Fix an obvious bug in sentinel() X-Git-Tag: 1.1.0~561^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F920%2Fhead;p=teuthology.git Fix an obvious bug in sentinel() Signed-off-by: Zack Cerza --- 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: