mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-11 01:28:50 +08:00
Fix prune operation without max parameter
This commit is contained in:
parent
0ab21abef2
commit
c990c4893f
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue