More specific Solaris <11 detection.

Note: This will probably break on Solaris 12+, but not certain of a better approach for now.
This commit is contained in:
Myles A. K. Steinhauser 2014-01-14 09:52:27 -05:00
parent 9cf0387e00
commit e5445442c1
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module VagrantPlugins
# Contributed by Blake Irvin <b.irvin@modcloth.com>
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("uname -s | grep SunOS")
machine.communicate.test("uname -sr | grep SunOS | grep -v 5.11")
end
end
end