diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-09-06 13:08:11 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-10-08 15:05:39 +0100 |
commit | 412ece36410ed2465dfdcf4e432a872154c17c0d (patch) | |
tree | 4abdd3f7d2161b7c797dae961e4adbd50329b342 | |
parent | de5fd69e594d6c182e1a2d3539bcabebc941ed4d (diff) | |
download | sos-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.py | 5 |
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********") |