summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrevoro <trevoro@joyent.com>2012-04-13 16:33:32 +0000
committerBryan McLellan <btm@opscode.com>2012-05-24 06:04:08 -0700
commit6abe2a4bb174b64b1990a22adb09290caebe17a0 (patch)
tree1e317c27047d37953cbf03134cf867a69027d3d9
parent440b9e52da527773b68771c51756093619a0a101 (diff)
downloadohai-6abe2a4bb174b64b1990a22adb09290caebe17a0.tar.gz
[TOOLS-112] Remove platform_version from /etc/release switch
-rw-r--r--lib/ohai/plugins/solaris2/platform.rb3
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