fix: config.keep_snapshots_per_interval.items
This commit is contained in:
+1
-1
@@ -718,7 +718,7 @@ class Dataset:
|
||||
return Dataset(self._path.replace_pool(name))
|
||||
|
||||
def clean_old_snapshots(self) -> None:
|
||||
for interval, number in config.keep_snapshots_per_interval.keys():
|
||||
for interval, number in config.keep_snapshots_per_interval.items():
|
||||
self._clean_old_snapshots_for_interval(interval, number)
|
||||
|
||||
def _clean_old_snapshots_for_interval(self, interval: str, max_count: int) -> None:
|
||||
|
||||
Reference in New Issue
Block a user