diff options
author | trevoro <trevoro@joyent.com> | 2012-04-13 16:33:32 +0000 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-05-24 06:04:08 -0700 |
commit | 6abe2a4bb174b64b1990a22adb09290caebe17a0 (patch) | |
tree | 1e317c27047d37953cbf03134cf867a69027d3d9 | |
parent | 440b9e52da527773b68771c51756093619a0a101 (diff) | |
download | ohai-6abe2a4bb174b64b1990a22adb09290caebe17a0.tar.gz |
[TOOLS-112] Remove platform_version from /etc/release switch
-rw-r--r-- | lib/ohai/plugins/solaris2/platform.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ohai/plugins/solaris2/platform.rb b/lib/ohai/plugins/solaris2/platform.rb index 17776951..6384bc83 100644 --- a/lib/ohai/plugins/solaris2/platform.rb +++ b/lib/ohai/plugins/solaris2/platform.rb @@ -54,9 +54,8 @@ File.open("/etc/release") do |file| platform "solaris2" when /^\s*(NexentaCore)\s.*$/ platform "nexentacore" - when /^\s*(SmartOS)\s(\d{8}T\d{6}Z)\s.*$/ + when /^\s*(SmartOS)\s.*$/ platform "smartos" - platform_version $2 end end end |