go generate
This commit is contained in:
parent
a8ce240049
commit
62d7324bfc
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user