Commit d811fea4 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

borg: Better result code handling from Borg process

parent 966fa0b9
Pipeline #7159 passed with stage
in 47 seconds
......@@ -279,7 +279,15 @@ class BorgBackup: # noqa: R0902 pylint: disable=too-many-instance-attributes
if pipe_process:"Borg completed: status={result_code}, pipe status={result_code_pp}")
else:"Borg completed: status={result_code}")
if result_code == 0:"Borg completed: status={result_code} (NORMAL)")
if result_code == 2:"Borg completed: status={result_code} (WARNING)")
# Silently ignore
result_code = 0
else:"Borg completed: status={result_code} (ERROR)")
stats["result_code"] = result_code or result_code_pp
except KeyboardInterrupt:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment