From be9f1e8636250f97d4038ed423d31a8762608ef6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 13 Jun 2021 14:36:27 -0400 Subject: [PATCH] Use more compatible is_alive in thread --- node-daemon/pvcnoded/VMConsoleWatcherInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/VMConsoleWatcherInstance.py b/node-daemon/pvcnoded/VMConsoleWatcherInstance.py index ce9f1c6a..ee17a1bf 100644 --- a/node-daemon/pvcnoded/VMConsoleWatcherInstance.py +++ b/node-daemon/pvcnoded/VMConsoleWatcherInstance.py @@ -71,7 +71,7 @@ class VMConsoleWatcherInstance(object): # Stop execution thread def stop(self): - if self.thread and self.thread.isAlive(): + if self.thread and self.thread.is_alive(): self.logger.out('Stopping VM log parser', state='i', prefix='Domain {}'.format(self.domuuid)) self.thread_stopper.set() # Do one final flush