aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-09-06 13:08:11 +0200
committerBryn M. Reeves <bmr@redhat.com>2019-10-08 15:05:39 +0100
commit412ece36410ed2465dfdcf4e432a872154c17c0d (patch)
tree4abdd3f7d2161b7c797dae961e4adbd50329b342
parentde5fd69e594d6c182e1a2d3539bcabebc941ed4d (diff)
downloadsos-412ece36410ed2465dfdcf4e432a872154c17c0d.tar.gz
[virtwho] collect /etc/virt-who.conf
The most basic config file also matters :) Resolves: #1778 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/virtwho.py5
1 files 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********")