summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-18 16:23:37 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-18 16:23:37 -0800
commit4e8afd956b0a8ed981aff532b861db17ded58b98 (patch)
treeac17adfdce76f827801a445a5028c15bbee882ff /lib/ohai/plugins
parentda337db812e3efe992c6e04f9bbdb66bbf1ed874 (diff)
downloadohai-4e8afd956b0a8ed981aff532b861db17ded58b98.tar.gz
1 line from_cmd in vmware as well
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/ohai/plugins')
-rw-r--r--lib/ohai/plugins/vmware.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ohai/plugins/vmware.rb b/lib/ohai/plugins/vmware.rb
index bdc1cee6..d8c89e66 100644
--- a/lib/ohai/plugins/vmware.rb
+++ b/lib/ohai/plugins/vmware.rb
@@ -37,8 +37,7 @@ Ohai.plugin(:VMware) do
depends "virtualization"
def from_cmd(cmd)
- so = shell_out(cmd)
- so.stdout.strip
+ shell_out(cmd).stdout.strip
end
def get_vm_attributes(vmtools_path)