Prevent exception while running BorgVersionJob with unexpected lines on stderr

The borg job logic expects the `profile_name` key to be unconditionally present in the params if any data is received on stderr. This causes the BorgVersionJob (which didn’t set this param) to fail if any unexpected output – such as LD_PRELOAD warnings – in generated while running `borg --version`. This in turn causes Vorta to silently (other than an unrelated looking exception in the console output) fall back to assuming borg 1.1.0 as the borg version.
This commit is contained in:
Erin Yuki Schlarb 2024-02-12 22:03:52 +00:00 committed by Manu
parent 3268bf1599
commit 9f1f75c30a
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class BorgVersionJob(BorgJob):
return ret
ret['cmd'] = ['borg', '--version']
ret['profile_name'] = 'default'
ret['ok'] = True
return ret