aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/kpatch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/kpatch.py b/sos/plugins/kpatch.py
index 7909926a..6ef557e8 100644
--- a/sos/plugins/kpatch.py
+++ b/sos/plugins/kpatch.py
@@ -27,6 +27,8 @@ class Kpatch(Plugin, RedHatPlugin):
def setup(self):
kpatch_list = self.get_cmd_output_now("kpatch list")
+ if not kpatch_list:
+ return
kpatches = open(kpatch_list, "r").read().splitlines()
for patch in kpatches:
if not re.match("^kpatch-.*\(.*\)", patch):