Fix vbox multimachine by setting provider parallel default correctly

Turns out I misinterpreted the behavior of a ruby method with a default
being passed nil so I assumed :parallel was effectively defaulting to
true when it is the opposite.
This commit is contained in:
Paul Hinze 2022-07-25 15:52:11 -05:00
parent fe4956ac83
commit fc76f71ffc
No known key found for this signature in database
GPG Key ID: 70B94C31D170FB29

View File

@ -127,8 +127,8 @@ module VagrantPlugins
return SDK::PluginInfo::ProviderOptions.new(
# Priority is always set in V2::Plugin.provider
priority: popts[:priority],
# Parallel is passed along to Environment#batch which defaults it to true
parallel: popts.fetch(:parallel, true),
# Parallel is defaults to falsy when its passed along as an arg to Environment#batch.
parallel: popts.fetch(:parallel, false),
# BoxOptional defaults to falsy when it's used in Kernel_V2::VMConfig
box_optional: popts.fetch(:box_optional, false),
# Defaultable is considered true when it is not specified in Environment#default_provider