mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-28 14:29:32 +08:00
Fix forget when only one snapshot is given
This commit is contained in:
parent
2ad353b394
commit
b8c75b35d3
1 changed files with 1 additions and 1 deletions
|
|
@ -865,7 +865,7 @@ class ResticRunner:
|
|||
for snapshot in snapshots:
|
||||
cmds.append(f"forget {snapshot}")
|
||||
else:
|
||||
cmds = f"forget {snapshots}"
|
||||
cmds = [f"forget {snapshots}"]
|
||||
if policy:
|
||||
cmd = "forget"
|
||||
for key, value in policy.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue