diff options
-rw-r--r-- | sos/sosreport.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index 42ff8938..4ef9abcb 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -1287,7 +1287,9 @@ class SoSReport(object): self.pluglist.append((plugruncount, i[0])) try: self.plugpool = ThreadPoolExecutor(self.opts.threads) - self.plugpool.map(self._collect_plugin, self.pluglist, chunksize=1) + # Pass the plugpool its own private copy of self.pluglist + self.plugpool.map(self._collect_plugin, list(self.pluglist), + chunksize=1) self.plugpool.shutdown(wait=True) self.ui_log.info("") except KeyboardInterrupt: |