mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-10 22:23:09 +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:
|
for snapshot in snapshots:
|
||||||
cmds.append(f"forget {snapshot}")
|
cmds.append(f"forget {snapshot}")
|
||||||
else:
|
else:
|
||||||
cmds = f"forget {snapshots}"
|
cmds = [f"forget {snapshots}"]
|
||||||
if policy:
|
if policy:
|
||||||
cmd = "forget"
|
cmd = "forget"
|
||||||
for key, value in policy.items():
|
for key, value in policy.items():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue