diff --git a/tuned/ppd/controller.py b/tuned/ppd/controller.py index fdbfc4d..966da4c 100644 --- a/tuned/ppd/controller.py +++ b/tuned/ppd/controller.py @@ -88,7 +88,7 @@ class ProfileHoldManager(object): self._controller.switch_profile(new_profile) def clear(self): - for cookie in self._holds: + for cookie in list(self._holds.keys()): self._cancel(cookie)