diff options
author | Jose Castillo <jcastillo@redhat.com> | 2020-06-26 11:12:07 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-07-08 12:48:12 -0400 |
commit | ac038bf53c8caea7a142b0d10e1b1fe90705a328 (patch) | |
tree | f575d593f23e9fee0943cc797816bff73c5eab90 | |
parent | e212a6fe72a8f7817503a6fc70fb30f8f3be2cea (diff) | |
download | sos-ac038bf53c8caea7a142b0d10e1b1fe90705a328.tar.gz |
[vhostmd] Capture the output of vhostmd
Currently we only use the output of vhostmd temporarily
to check if the machine is a vm or not. With this
patch we also capture its output.
Resolves: #2135
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/vhostmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/report/plugins/vhostmd.py b/sos/report/plugins/vhostmd.py index d90852ba..13378f2d 100644 --- a/sos/report/plugins/vhostmd.py +++ b/sos/report/plugins/vhostmd.py @@ -20,7 +20,7 @@ class vhostmd(Plugin, RedHatPlugin): packages = ['virt-what'] def setup(self): - vw = self.exec_cmd("virt-what")['output'].splitlines() + vw = self.collect_cmd_output("virt-what")['output'].splitlines() if not vw: return |