go generate

This commit is contained in:
sophia 2021-11-08 16:15:46 -06:00 committed by Paul Hinze
parent a8ce240049
commit 62d7324bfc
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
4 changed files with 4 additions and 6 deletions

View File

@ -36,9 +36,9 @@ func (m *Machine) SetID(value string) (err error) {
return m.SaveMachine()
}
func (m *Machine) Box() (b *core.Box, err error) {
func (m *Machine) Box() (b core.Box, err error) {
var result core.Box
return &result, mapstructure.Decode(m.machine.Box, &result)
return result, mapstructure.Decode(m.machine.Box, &result)
}
// Guest implements core.Machine

View File

@ -103,7 +103,6 @@ func (s *State) boxDelete(
}
return err
}
// TODO: should references to the box, say in the machine also be deleted?
// Delete the box
if err = dbTxn.Bucket(boxBucket).Delete(s.boxId(b)); err != nil {
return

View File

@ -756,7 +756,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :version, :string, 1
end
add_message "hashicorp.vagrant.sdk.Box.EqualityResponse" do
optional :result, :bool, 1
optional :result, :int32, 1
end
end
end

View File

@ -492,8 +492,7 @@ module Hashicorp
rpc :Name, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Box::NameResponse
rpc :Provider, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Box::ProviderResponse
rpc :Version, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Box::VersionResponse
rpc :GreaterThanOrEqual, ::Hashicorp::Vagrant::Sdk::Args::Box, ::Hashicorp::Vagrant::Sdk::Box::EqualityResponse
rpc :LessThan, ::Hashicorp::Vagrant::Sdk::Args::Box, ::Hashicorp::Vagrant::Sdk::Box::EqualityResponse
rpc :Compare, ::Hashicorp::Vagrant::Sdk::Args::Box, ::Hashicorp::Vagrant::Sdk::Box::EqualityResponse
end
Stub = Service.rpc_stub_class