Temporary workaround to let Docker provider work

Comment has the details, but this should hopefully be short lived
This commit is contained in:
Paul Hinze 2022-05-16 16:52:56 -05:00
parent 8801e030b7
commit 49aa226613
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -755,7 +755,12 @@ module VagrantPlugins
@allow_fstab_modification = true if @allow_fstab_modification == UNSET_VALUE
end
if !box && !clone && !machine.provider_options[:box_optional]
# HACK(phinze): We cannot honor box_optional in gogo yet so we are
# temporarily hacking in a workaround which explicitly looks for docker
# instead of the option itself. Once plugin metadata is implemented
# this conditional should be reverted to the commented line below
# if !box && !clone && !machine.provider_options[:box_optional]
if !box && !clone && machine.provider_name != :docker
errors << I18n.t("vagrant.config.vm.box_missing")
end