mirror of https://github.com/borgbase/vorta
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:
parent
3268bf1599
commit
9f1f75c30a
|
@ -22,6 +22,7 @@ class BorgVersionJob(BorgJob):
|
|||
return ret
|
||||
|
||||
ret['cmd'] = ['borg', '--version']
|
||||
ret['profile_name'] = 'default'
|
||||
ret['ok'] = True
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue