From: Patrick Donnelly Date: Tue, 2 Apr 2024 14:18:52 +0000 (-0400) Subject: qa: do not iterate list being modified X-Git-Tag: testing/wip-batrick-testing-20240411.160316~2^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=57022d9b1c24077841c23aa3228494cee35f02e2;p=ceph-ci.git qa: do not iterate list being modified Fixes: https://tracker.ceph.com/issues/65022 Fixes: bb71023ced2d97a2590b98c4b820e7af6f1801b3 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index ba4874cc92d..ce5440cdb11 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -1396,7 +1396,7 @@ class CephFSMount(object): For a process that was returned by one of the _background member functions, kill it hard. """ - procs = [p] if p is not None else self.background_procs + procs = [p] if p is not None else list(self.background_procs) for p in procs: log.debug(f"terminating {p}") self._kill_background(p)