diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-18 16:23:37 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-18 16:23:37 -0800 |
commit | 4e8afd956b0a8ed981aff532b861db17ded58b98 (patch) | |
tree | ac17adfdce76f827801a445a5028c15bbee882ff /lib/ohai/plugins | |
parent | da337db812e3efe992c6e04f9bbdb66bbf1ed874 (diff) | |
download | ohai-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.rb | 3 |
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) |