diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 17:30:16 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 17:30:16 +0000 |
commit | 430806a2bc1d11b60b867e0296e7200e17595cfc (patch) | |
tree | bed13d0bf3d320de12b0c8f96ddf2e3e745c60cc /docs/utilities.rst | |
parent | 39995744dcc81df56baf173fdbfc1b1a037f3ced (diff) | |
download | sos-430806a2bc1d11b60b867e0296e7200e17595cfc.tar.gz |
[sosreport] raise SystemExit out of list handlers
Since the temporary directories have already been set up by the
time we process the --list-* handling (plugins, profiles, presets),
we still need to follow the _cleanup() path at exit.
To avoid a duplicate _cleanup() and resulting File Not Found
exception, raise SystemExit out of these paths, which takes us
through the normal exception handling in SoSReport.execute() and
is consistent with all other paths through the command.
Resolves: #1594.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'docs/utilities.rst')
0 files changed, 0 insertions, 0 deletions