Fix prune operation without max parameter

This commit is contained in:
Orsiris de Jong 2024-01-12 14:07:18 +01:00
parent 0ab21abef2
commit c990c4893f

View file

@ -1153,9 +1153,11 @@ class NPBackupRunner:
if max: if max:
max_unused = self.repo_config.g("prune_max_unused") max_unused = self.repo_config.g("prune_max_unused")
max_repack_size = self.repo_config.g("prune_max_repack_size") max_repack_size = self.repo_config.g("prune_max_repack_size")
result = self.restic_runner.prune( result = self.restic_runner.prune(
max_unused=max_unused, max_repack_size=max_repack_size max_unused=max_unused, max_repack_size=max_repack_size
) )
else:
result = self.restic_runner.prune()
return result return result
@threaded @threaded