Update protos

This commit is contained in:
sophia 2021-11-17 16:08:09 -06:00 committed by Paul Hinze
parent 57afe56edd
commit 7aaeaf2e46
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
4 changed files with 6 additions and 7 deletions

View File

@ -24,7 +24,7 @@ func (s *service) DeleteBox(
req *vagrant_server.DeleteBoxRequest,
) (empt *empty.Empty, err error) {
err = s.state.BoxDelete(req.Box)
return
return &empty.Empty{}, nil
}
func (s *service) GetBox(

View File

@ -24,8 +24,7 @@ module Vagrant
# @return [Vagrant::Box]
def add(path, name, version, **opts)
client.add(
path, name, version, force=opts[:force],
metadata_url=opts[:metadata_url], provider=opts[:providers]
path, name, version, opts[:force], opts[:metadata_url], opts[:providers]
)
end

View File

@ -743,10 +743,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :version, :string, 1
end
add_message "hashicorp.vagrant.sdk.Box.HasUpdateResponse" do
optional :hasUpdate, :bool, 1
optional :has_update, :bool, 1
end
add_message "hashicorp.vagrant.sdk.Box.InUseResponse" do
optional :inUse, :bool, 1
optional :in_use, :bool, 1
end
add_message "hashicorp.vagrant.sdk.Box.MetadataUrlResponse" do
optional :metadataUrl, :string, 1

View File

@ -21,14 +21,14 @@ module VagrantPlugins
res = client.has_update(SDK::Box::HasUpdateRequest.new(
version: version
))
res.hasUpdate
res.has_update
end
# @param [Sdk::Args::TargetIndex] index
# @return [Bool] is in use
def in_use(index)
res = client.in_use(index)
res.inUse
res.in_use
end
# @param [String] path