Fix crashes on Vagrantfiles with provisioners
I forgot to handle nil in the new PluginOptions stuff, and options are nil for Provisioner plugins.
This commit is contained in:
parent
7ccfff3ec2
commit
9ab94f9971
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user