summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Heinen <theinen@tecracer.de>2021-12-09 15:59:26 +0100
committerThomas Heinen <theinen@tecracer.de>2021-12-09 15:59:26 +0100
commit1da5761c8954c1b3555dedaa09ee8788f25f7f7f (patch)
treee09e645be605f666d8e9b4a531fba2eb5d9a3fee /lib
parenta60d6f11dbd214790a09cb350927a9061c627cb3 (diff)
downloadohai-1da5761c8954c1b3555dedaa09ee8788f25f7f7f.tar.gz
Add some tests
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/ohai/plugins/vmware.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/vmware.rb b/lib/ohai/plugins/vmware.rb
index d5759a76..250a9e24 100644
--- a/lib/ohai/plugins/vmware.rb
+++ b/lib/ohai/plugins/vmware.rb
@@ -64,7 +64,7 @@ Ohai.plugin(:VMware) do
vmware[param] = from_cmd([vmtools_path, param, "status"])
end
# Distinguish hypervisors by presence of raw session data (vSphere only)
- raw_session = from_cmd([vmtools_path, %w{stat raw json session}])
+ raw_session = from_cmd([vmtools_path, "stat", "raw", "json", "session"])
if raw_session.empty?
vmware[:host] = {
type: "vmware_desktop",