]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix an obvious bug in sentinel() 920/head
authorZack Cerza <zack@redhat.com>
Fri, 29 Jul 2016 16:53:04 +0000 (10:53 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 29 Jul 2016 16:53:04 +0000 (10:53 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/worker.py

index 84b9f33c8a550319473c226a37d94177e34a7da8..32b3b53ff762423843be4f1d6b02bb9b74054b65 100644 (file)
@@ -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: