aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Castillo <jcastillo@redhat.com>2020-06-26 11:12:07 +0100
committerJake Hunsaker <jhunsake@redhat.com>2020-07-08 12:48:12 -0400
commitac038bf53c8caea7a142b0d10e1b1fe90705a328 (patch)
treef575d593f23e9fee0943cc797816bff73c5eab90
parente212a6fe72a8f7817503a6fc70fb30f8f3be2cea (diff)
downloadsos-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.py2
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