mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-25 21:06:23 +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:
|
if cmds:
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
result, output = self.executor(cmd)
|
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'}"
|
msg = f"successfully {'applied retention policy' if policy else 'forgot snapshot'}"
|
||||||
self.write_logs(
|
self.write_logs(
|
||||||
msg,
|
msg,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue