lib/ohai/plugins/solaris2/platform.rb in ohai-6.14.0 vs lib/ohai/plugins/solaris2/platform.rb in ohai-6.16.0.beta.1

- old
+ new

@@ -37,10 +37,12 @@ end File.open("/etc/release") do |file| while line = file.gets case line + when /^.*(SmartOS).*$/ + platform "smartos" when /^\s*(OmniOS).*r(\d+).*$/ platform "omnios" platform_version $2 when /^\s*(OpenIndiana).*oi_(\d+).*$/ platform "openindiana" @@ -52,10 +54,8 @@ platform "solaris2" when /^\s*(Solaris)\s.*$/ platform "solaris2" when /^\s*(NexentaCore)\s.*$/ platform "nexentacore" - when /^\s*(SmartOS)\s.*$/ - platform "smartos" end end end