Merge pull request #5201 from mitchellh/3031-catch-errno-eaccess

Fix issue 3031
This commit is contained in:
Shawn Neal 2015-01-16 12:58:07 -08:00
commit 4cd767afcc
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ module Vagrant
# to connect.
return true
end
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \
Errno::ENETUNREACH, Errno::EACCES
# Any of the above exceptions signal that the port is closed.
return false
end