aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-02-11 16:53:16 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-02-11 16:53:16 +0000
commitc48b762c2e98ee05a17375af7427af702f9c9925 (patch)
treef87bcececa2211ce4c8d29585e96e9f10837584f /setup.py
parent7f6d34d154b9fe110c168a5b44083d8e35bb2068 (diff)
downloadsos-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 'setup.py')
0 files changed, 0 insertions, 0 deletions