diff --git a/sos/collector/sosnode.py b/sos/collector/sosnode.py index 0a3effaa4d..0af004f6cd 100644 --- a/sos/collector/sosnode.py +++ b/sos/collector/sosnode.py @@ -367,7 +367,8 @@ def _regex_sos_help(self, regex, sosinfo, is_list=False): for line in result.splitlines(): if not is_list: try: - res.append(line.split()[0]) + if ls := line.split(): + res.append(ls[0]) except Exception as err: self.log_debug(f"Error parsing sos help: {err}") else: