Blame SOURCES/sos-bz1438257-collect-cmds-with-return-1.patch

b939f5
From a2c387ae1687170e827e0aa2b49faf759c015798 Mon Sep 17 00:00:00 2001
b939f5
From: "Bryn M. Reeves" <bmr@redhat.com>
b939f5
Date: Wed, 19 Apr 2017 14:22:50 +0100
b939f5
Subject: [PATCH] [Pugin] revert 77eb4ab (do not return output from failed
b939f5
 commands)
b939f5
b939f5
Revert this commit: individual plugins must test the command
b939f5
status (if they care): plugins that attempt to access command
b939f5
output without testing command status are buggy and need to be
b939f5
fixed.
b939f5
b939f5
Resolves: #986.
b939f5
b939f5
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
b939f5
---
b939f5
 sos/plugins/__init__.py | 3 ---
b939f5
 1 file changed, 3 deletions(-)
b939f5
b939f5
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
b939f5
index 5286e4b..35edcb1 100644
b939f5
--- a/sos/plugins/__init__.py
b939f5
+++ b/sos/plugins/__init__.py
b939f5
@@ -692,9 +692,6 @@ class Plugin(object):
b939f5
         if result['status'] == 126 or result['status'] == 127:
b939f5
             return None
b939f5
 
b939f5
-        if result['status'] == 1:
b939f5
-            return None
b939f5
-
b939f5
         self._log_debug("collected output of '%s' in %s"
b939f5
                         % (exe.split()[0], time() - start))
b939f5
 
b939f5
-- 
b939f5
2.7.4
b939f5