From 4b61b0be496c880f0bd41cb4dee24b3e51d5d1ba Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 21 Jun 2022 14:42:14 -0700 Subject: [PATCH] Fix state loading for machine --- lib/vagrant/machine/remote.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/vagrant/machine/remote.rb b/lib/vagrant/machine/remote.rb index 91f4fff61..dfd8433a6 100644 --- a/lib/vagrant/machine/remote.rb +++ b/lib/vagrant/machine/remote.rb @@ -128,7 +128,7 @@ module Vagrant end def state - s = @provider.state + s = provider.state raise Errors::MachineStateInvalid if !s.is_a?(MachineState) client.set_machine_state(s) unless s.nil? return s @@ -157,10 +157,6 @@ module Vagrant id end - def state - client.machine_state - end - def ssh_info # First, ask the provider for their information. If the provider # returns nil, then the machine is simply not ready for SSH, and