Update vagrantfile parsing for vagrantfile proto changes

This commit is contained in:
sophia 2021-05-12 14:56:52 -05:00 committed by Paul Hinze
parent 053be35242
commit 21dec58ba6
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -48,14 +48,14 @@ module VagrantPlugins
machine_info = v.machine_config(mach, nil, nil)
root_config = machine_info[:config]
config = root_config.vm
machine_configs << Hashicorp::Vagrant::MachineConfig.new(
machine_configs << Hashicorp::Vagrant::VagrantfileComponents::MachineConfig.new(
name: mach.to_s,
box: config.box,
provisioners: []
)
end
vagrantfile = Hashicorp::Vagrant::Vagrantfile.new(
vagrantfile = Hashicorp::Vagrant::VagrantfileComponents::Vagrantfile.new(
path: vagrantfile_path,
raw: raw,
current_version: Vagrant::Config::CURRENT_VERSION,