Ensure array type is processed when loading actions

This commit is contained in:
Chris Roberts 2019-03-14 14:35:04 -07:00
parent c441fac0db
commit 338cf4cc0b
1 changed files with 1 additions and 1 deletions

View File

@ -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)