Fix forget when only one snapshot is given

This commit is contained in:
Orsiris de Jong 2024-01-09 21:30:01 +01:00
parent 2ad353b394
commit b8c75b35d3

View file

@ -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():