Fix namespace for entry

This commit is contained in:
Chris Roberts 2021-08-16 11:48:11 -07:00 committed by Paul Hinze
parent 8b8f5adf67
commit d2ed78861e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -43,7 +43,7 @@ module VagrantPlugins
)
)
machine = Target.load(resp.target, broker: broker).to_machine
Entry.load(machine)
Vagrant::MachineIndex::Entry.load(machine)
rescue GRPC::NotFound
nil
end
@ -78,7 +78,7 @@ module VagrantPlugins
machine = Target.load(resp.target, broker: broker).to_machine
machine.set_name(entry.name)
machine.set_state(entry.full_state)
Entry.load(machine)
Vagrant::MachineIndex::Entry.load(machine)
end
# Get all targets
@ -87,7 +87,7 @@ module VagrantPlugins
@logger.debug("getting all machines")
client.all(Empty.new).targets.map do |t_ref|
machine = Target.load(t_ref, broker: broker).to_machine
Entry.load(machine)
Vagrant::MachineIndex::Entry.load(machine)
end
end
end