lib/ohai/plugins/os.rb in ohai-16.7.18 vs lib/ohai/plugins/os.rb in ohai-16.7.37
- old
+ new
@@ -33,10 +33,10 @@
collect_data(:dragonflybsd, :freebsd) do
os collect_os
# This is __DragonFly_version / __FreeBSD_version. See sys/param.h or
# http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html.
- os_version shell_out("sysctl -n kern.osreldate").stdout.split($/)[0]
+ os_version shell_out("sysctl -n kern.osreldate").stdout.strip
end
collect_data(:target) do
os collect_os
end