diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-02-11 16:53:16 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-02-11 16:53:16 +0000 |
commit | c48b762c2e98ee05a17375af7427af702f9c9925 (patch) | |
tree | f87bcececa2211ce4c8d29585e96e9f10837584f /sos.conf | |
parent | 7f6d34d154b9fe110c168a5b44083d8e35bb2068 (diff) | |
download | sos-c48b762c2e98ee05a17375af7427af702f9c9925.tar.gz |
Fix command output substitution exception
If a comand has a substitution registered via do_cmd_output_sub()
but no data was collected (e.g. command not found) the postproc
code will throw an exception as the return value ('replacements')
is never assigned.
Initialise replacements to None before scanning the list of run
commands and return this if no substitutions were made.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos.conf')
0 files changed, 0 insertions, 0 deletions