Remove reload machine function from the grpc api
This commit is contained in:
parent
6dfca17d54
commit
0a37521ef2
@ -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
|
||||
|
||||
@ -135,6 +135,10 @@ module Vagrant
|
||||
nil
|
||||
end
|
||||
|
||||
def reload
|
||||
id
|
||||
end
|
||||
|
||||
def state
|
||||
client.machine_state
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user