aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-04 23:00:51 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-04 23:00:51 +0000
commit5bb10c6fa0ff8eaebf942ae8d56edb50b4c0e8df (patch)
tree75d6e950973888e6ca7f9ad906d8338369a78692
parentd78e1a462814152551e627a109c73fbdc3be2645 (diff)
downloadsos-5bb10c6fa0ff8eaebf942ae8d56edb50b4c0e8df.tar.gz
Fix error logging when calling external programs
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index d930c9ef..bf9f5a0b 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -482,6 +482,8 @@ class Plugin(object):
# pylint: disable-msg = W0612
status, shout, runtime = sosGetCommandOutput(exe, timeout=timeout)
+ if (status == 127):
+ self.soslog.info("could not run '%s'" % prog)
if suggest_filename:
outfn = self.makeCommandFilename(suggest_filename)