diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-10-16 15:21:13 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-10-16 15:21:13 +0200 |
commit | cfe2ffcc23b714804c42109868a964d1b40f1630 (patch) | |
tree | 8afa4d0f04566c9c756259b4e4bb300c0c0e1248 /lbup/targets.py | |
parent | 63eef7e44e1ecb2ccf4c88237fab8731fddf48b3 (diff) |
repository: rewrite results processing
Drop the use of retcode, as it is not very meaningful.
Drop all_ok, as it is not very useful.
Catch all exceptions from individual targets and wrap them as failed
results.
Diffstat (limited to 'lbup/targets.py')
-rw-r--r-- | lbup/targets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lbup/targets.py b/lbup/targets.py index d3c724a..9801bc4 100644 --- a/lbup/targets.py +++ b/lbup/targets.py @@ -110,7 +110,7 @@ class Target(ABC): retcode = res_save.returncode output += res_save.stderr + res_save.stdout - result = repository.StepResult(retcode, output) + result = repository.StepResult(retcode == 0, output) return result |