Update remote function name and setup

This commit is contained in:
Chris Roberts 2021-08-13 13:43:15 -07:00 committed by Paul Hinze
parent b243868ce9
commit 8f4bb571a5
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 2 additions and 8 deletions

View File

@ -38,13 +38,7 @@ module Vagrant
# When starting up in server mode, Vagrant will set the environment
# client to the value `:stub`. So, check that we have an actual
# CommandServe::Client::Project by checking for a client
if @client.class != Symbol
machine_index_client = @client.machine_index
@machine_index ||= Vagrant::MachineIndex.new()
@machine_index.client = machine_index_client
@machine_index
end
@machine_index
@machine_index ||= Vagrant::MachineIndex.new(client: client.target_index)
end
end
end

View File

@ -42,7 +42,7 @@ module Vagrant
#TODO: get box from @client.get_box()
@box = box
@config = config
@data_dir = @client.get_data_dir()
@data_dir = @client.data_dir
@vagrantfile = vagrantfile
@guest = Guest.new(
self,