From 9ab94f99719f925140b489d625873a467bb3bb6f Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 20 Jul 2022 17:23:19 -0500 Subject: [PATCH] Fix crashes on Vagrantfiles with provisioners I forgot to handle nil in the new PluginOptions stuff, and options are nil for Provisioner plugins. --- plugins/commands/serve/client/plugin_manager.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/commands/serve/client/plugin_manager.rb b/plugins/commands/serve/client/plugin_manager.rb index 8aee31040..20c96a42b 100644 --- a/plugins/commands/serve/client/plugin_manager.rb +++ b/plugins/commands/serve/client/plugin_manager.rb @@ -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