Update path check for ssl helper

A path check is done prior to loading the vagrant ssl helper, but it was
only checking for a file with a `.so` suffix so `.bundle` files on macos
would be ignored and the helper not loaded.

Include both paths when checking for the library existence.
This commit is contained in:
Chris Roberts 2023-10-18 17:44:18 -07:00
parent b8f9efb0d2
commit 288f8ba552

View File

@ -129,7 +129,11 @@ end
# If the vagrant_ssl library exists, a recent version
# of openssl is in use and its needed to load all the
# providers needed
if File.exist?(File.expand_path("vagrant/vagrant_ssl.so", __dir__))
vagrant_ssl_locations = [
File.expand_path("vagrant/vagrant_ssl.so", __dir__),
File.expand_path("vagrant/vagrant_ssl.bundle", __dir__)
]
if vagrant_ssl_locations.any? { |f| File.exist?(f) }
global_logger.debug("vagrant ssl helper found for loading ssl providers")
begin
require "vagrant/vagrant_ssl"