Merge pull request #319 from hashicorp/fix-provisioners

Fix crashes on Vagrantfiles with provisioners
This commit is contained in:
Paul Hinze 2022-07-20 15:38:01 -07:00 committed by GitHub
commit 092bf6ebc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ module VagrantPlugins
# dependent so we need to unpack each kind of plugin options with its
# own logic.
def _plugin_options_to_hash(plg_opts)
return {} if plg_opts.nil?
opts = mapper.unany(plg_opts)
case opts
when Hashicorp::Vagrant::Sdk::PluginInfo::ProviderOptions