Update Ruby clients for proto changes

This commit is contained in:
sophia 2022-04-15 16:41:40 -05:00
parent 398d982408
commit adf2340712
2 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,9 @@ module VagrantPlugins
# @return [Vagrant::Box] box added # @return [Vagrant::Box] box added
def add(path, name, version, force=false, metadata_url=nil, providers=[]) def add(path, name, version, force=false, metadata_url=nil, providers=[])
logger.debug("adding box at path #{path}") logger.debug("adding box at path #{path}")
args_path = SDK::Args::Path.new(path: path.to_s)
res = client.add(SDK::BoxCollection::AddRequest.new( res = client.add(SDK::BoxCollection::AddRequest.new(
path: path.to_s, name: name, version: version, metadataUrl: metadata_url, path: args_path, name: name, version: version, metadataUrl: metadata_url,
force: force, providers: Array(providers) force: force, providers: Array(providers)
)) ))
box_client = Box.load(res, broker: broker) box_client = Box.load(res, broker: broker)

View File

@ -40,7 +40,7 @@ module VagrantPlugins
# return [String] # return [String]
def default_private_key def default_private_key
resp = client.default_private_key(Empty.new) resp = client.default_private_key(Empty.new)
resp.key resp.path
end end
# return [String] # return [String]