From 412ece36410ed2465dfdcf4e432a872154c17c0d Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Fri, 6 Sep 2019 13:08:11 +0200 Subject: [virtwho] collect /etc/virt-who.conf The most basic config file also matters :) Resolves: #1778 Signed-off-by: Pavel Moravec --- sos/plugins/virtwho.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sos/plugins/virtwho.py b/sos/plugins/virtwho.py index 2561703d..dec889e4 100644 --- a/sos/plugins/virtwho.py +++ b/sos/plugins/virtwho.py @@ -18,11 +18,12 @@ class VirtWho(Plugin, RedHatPlugin): packages = ('virt-who',) def setup(self): - self.add_copy_spec("/etc/virt-who.d/*") + self.add_copy_spec(["/etc/virt-who.d/*", "/etc/virt-who.conf"]) self.add_cmd_output("virt-who -dop") def postproc(self): - self.do_path_regex_sub(r"\/etc\/virt-who\.d", + # the regexp path catches both /etc/virt-who.d/ and /etc/virt-who.conf + self.do_path_regex_sub(r"\/etc\/virt-who\.", r"(.*password=)(\S*)", r"\1********") -- cgit