Blob Blame History Raw
From 23ace61977810c36774a1ed0239c37a2a3be2072 Mon Sep 17 00:00:00 2001
From: Barbora Vassova <bvassova@redhat.com>
Date: Thu, 11 Jan 2024 10:53:47 +0100
Subject: [PATCH] [rpm] Capture the output of 'rpm --showrc' This request adds
 the output of --showrc to sos so we can verify the default values of options
 set via rpmrc and macros config files.

Relevant: #3475

Signed-off-by: Barbora Vassova <bvassova@redhat.com>
---
 sos/plugins/rpm.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py
index c53b7e40be..f9ec450e80 100644
--- a/sos/plugins/rpm.py
+++ b/sos/plugins/rpm.py
@@ -61,4 +61,6 @@ def add_rpm_cmd(query_fmt, filter_cmd, symlink, suggest):
                                 suggest_filename='lsof_D_var_lib_rpm')
             self.add_copy_spec("/var/lib/rpm")
 
+        self.add_cmd_output("rpm --showrc")
+
 # vim: set et ts=4 sw=4 :