Let mappers convert machine to proto opposed to client

This commit is contained in:
sophia 2022-04-08 13:44:32 -05:00 committed by Paul Hinze
parent 305fddb49a
commit 9dcb9df7ff
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -40,7 +40,7 @@ module Vagrant
# any folders that should remain.
# @param [Hash] opts Any options for the synced folders.
def prepare(machine, folders, opts)
client.prepare(machine.to_proto, folders, opts)
client.prepare(machine, folders, opts)
end
# @param [Machine] machine
@ -49,7 +49,7 @@ module Vagrant
# @return [Boolean]
def usable?(machine, raise_error=false)
begin
client.usable(machine.to_proto)
client.usable(machine)
rescue
raise if raise_error
end