Remove reload machine function from the grpc api

This commit is contained in:
sophia 2022-04-22 09:43:14 -05:00
parent 6dfca17d54
commit 0a37521ef2
4 changed files with 4 additions and 12 deletions

View File

@ -173,12 +173,6 @@ func (m *Machine) Inspect() (printable string, err error) {
return
}
// Reload implements core.Machine
func (m *Machine) Reload() (err error) {
// TODO
return
}
// ConnectionInfo implements core.Machine
func (m *Machine) ConnectionInfo() (info *core.ConnectionInfo, err error) {
// TODO: need Vagrantfile

View File

@ -135,6 +135,10 @@ module Vagrant
nil
end
def reload
id
end
def state
client.machine_state
end

View File

@ -447,7 +447,6 @@ module Hashicorp
rpc :GetState, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Target::Machine::State
rpc :Box, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Box
rpc :Guest, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Guest
rpc :Reload, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
rpc :ConnectionInfo, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::Machine::ConnectionInfoResponse
rpc :UID, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::Machine::UIDResponse
rpc :SyncedFolders, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Target::Machine::SyncedFoldersResponse

View File

@ -70,11 +70,6 @@ module VagrantPlugins
p.name
end
# Force a reload of the machine state
def reload
client.reload(Empty.new)
end
# Set ID for machine
#
# @param [String] new_id New machine ID