mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-24 04:16:30 +08:00
Workaround restic output inconsistency: NPF-RESTIC-00001
This commit is contained in:
parent
a2c145f787
commit
d76dea3599
1 changed files with 3 additions and 1 deletions
|
|
@ -1129,7 +1129,9 @@ class ResticRunner:
|
|||
if cmds:
|
||||
for cmd in cmds:
|
||||
result, output = self.executor(cmd)
|
||||
if result:
|
||||
# NPF-RESTIC-00001
|
||||
# restic output inconsistency: non existing snapshot IDs still produce exit code 0
|
||||
if result and not "no matching ID found for prefix" in output:
|
||||
msg = f"successfully {'applied retention policy' if policy else 'forgot snapshot'}"
|
||||
self.write_logs(
|
||||
msg,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue