lib/ohai/plugins/solaris2/platform.rb in ohai-16.3.2 vs lib/ohai/plugins/solaris2/platform.rb in ohai-16.4.11
- old
+ new
@@ -24,11 +24,10 @@
uname_exec = "/sbin/uname"
else
uname_exec = "uname"
end
- so = shell_out("#{uname_exec} -X")
- so.stdout.lines do |line|
+ shell_out("#{uname_exec} -X").stdout.lines do |line|
case line
when /^Release =\s+(.+)$/
platform_version $1
when /^KernelID =\s+(.+)$/
platform_build $1