Use has with indifferent access when loading entry

This commit is contained in:
Chris Roberts 2021-08-16 14:04:35 -07:00 committed by Paul Hinze
parent 61bb2328f3
commit 7a1aba1cb9
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -3,7 +3,7 @@ module Vagrant
class Entry
module Remote
def load(machine)
self.new(machine.id, {
raw = Vagrant::Util::HashWithIndifferentAccess.new({
name: machine.name,
local_data_path: machine.project.local_data_path,
provider: machine.provider_name,
@ -12,6 +12,7 @@ module Vagrant
vagrantfile_name: machine.project.vagrantfile_name,
vagrantfile_path: machine.project.vagrantfile_path,
})
self.new(machine.get_uuid, raw)
end
end
end