lib/ohai/plugins/solaris2/platform.rb in ohai-7.0.4 vs lib/ohai/plugins/solaris2/platform.rb in ohai-7.2.0.alpha.0
- old
+ new
@@ -48,10 +48,10 @@
platform "openindiana"
platform_version $2
when /^\s*(OpenSolaris).*snv_(\d+).*$/
platform "opensolaris"
platform_version $2
- when /^\s*(Oracle Solaris) (\d+)\s.*$/
+ when /^\s*(Oracle Solaris)/
platform "solaris2"
when /^\s*(Solaris)\s.*$/
platform "solaris2"
when /^\s*(NexentaCore)\s.*$/
platform "nexentacore"