mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-21 07:16:16 +08:00
Fix forget when only one snapshot is given
This commit is contained in:
parent
2ad353b394
commit
b8c75b35d3
|
@ -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…
Reference in a new issue