diff options
-rw-r--r-- | sos/plugins/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 7f1b5ea2..76a85541 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -1256,6 +1256,10 @@ class Plugin(object): poller=self.check_timeout ) self._log_debug("could not run '%s': command not found" % cmd) + # Exit here if the command was not found in the chroot check above + # as otherwise we will create a blank file in the archive + if result['status'] in [126, 127]: + return result self._log_debug("collected output of '%s' in %s (changes=%s)" % (cmd.split()[0], time() - start, changes)) |