summaryrefslogtreecommitdiffstats
path: root/qa/tasks/daemonwatchdog.py
diff options
context:
space:
mode:
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>2019-12-17 02:26:12 +0100
committerKefu Chai <kchai@redhat.com>2020-03-04 06:09:16 +0100
commit8e1526d1d6d527f45a691e5fd9d2981a97420507 (patch)
treec8f6e3dcaedd71706aa4316d3d132f6425090250 /qa/tasks/daemonwatchdog.py
parentqa/tasks/workunit: py3 compat (diff)
downloadceph-8e1526d1d6d527f45a691e5fd9d2981a97420507.tar.xz
ceph-8e1526d1d6d527f45a691e5fd9d2981a97420507.zip
qa/tasks/daemonwatchdog: py3 compat
Address error: RuntimeError: dictionary changed size during iteration Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Diffstat (limited to 'qa/tasks/daemonwatchdog.py')
-rw-r--r--qa/tasks/daemonwatchdog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/tasks/daemonwatchdog.py b/qa/tasks/daemonwatchdog.py
index fcb1bffb2e3..b95c29920dd 100644
--- a/qa/tasks/daemonwatchdog.py
+++ b/qa/tasks/daemonwatchdog.py
@@ -99,7 +99,7 @@ class DaemonWatchdog(Greenlet):
bark = True
# If a daemon is no longer failed, remove it from tracking:
- for name in daemon_failure_time.keys():
+ for name in list(daemon_failure_time.keys()):
if name not in [d.role + '.' + d.id_ for d in daemon_failures]:
self.log("daemon {name} has been restored".format(name=name))
del daemon_failure_time[name]