From 338cf4cc0b384e2c84b60c72b0945c8eee0607e0 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 14 Mar 2019 14:35:04 -0700 Subject: [PATCH] Ensure array type is processed when loading actions --- lib/vagrant/go_plugin/provider_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/go_plugin/provider_plugin.rb b/lib/vagrant/go_plugin/provider_plugin.rb index ff28f7e66..9c7a30b92 100644 --- a/lib/vagrant/go_plugin/provider_plugin.rb +++ b/lib/vagrant/go_plugin/provider_plugin.rb @@ -185,7 +185,7 @@ module Vagrant def action(provider_name, action_name, machine) result = load_result { _provider_action(provider_name, action_name, dump_machine(machine)) } - klasses = result.map do |klass_name| + klasses = Array(result).map do |klass_name| if klass_name.start_with?("self::") action_name = klass_name.split("::", 2).last klass = Class.new(Action)