diff --git a/ccmlib/node.py b/ccmlib/node.py index 5b17d5bc..933ed413 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -1836,7 +1836,7 @@ def _update_pid(self, process): self.pid = int(f.readline().strip().decode('utf-16')) else: self.pid = int(f.readline().strip()) - self.all_pids.append(self.pid) + self.all_pids = list(set(self.all_pids) | {self.pid}) except IOError as e: raise NodeError(f'Problem starting node {self.name} due to {e}', process) self.__update_status()