aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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********")