lib/vagrant-parallels/provider.rb
# If the machine ID changed, then we need to rebuild our underlying
# driver.
If the machine ID changed, then we need to rebuild our underlying
driver.
If the machine ID changed then we need to rebuild our underlying driver .
def machine_id_changed
        id = @machine.id
        begin
          @logger.debug("Instantiating the driver for machine ID: #{@machine.id.inspect}")
          @driver = VagrantPlugins::Parallels::Driver::Meta.new(id)
        rescue VagrantPlugins::Parallels::Driver::Meta::VMNotFound
          @logger.debug('VM not found! Clearing saved machine ID and reloading.')
          id = nil
          retry
        end
      end
def machine_id_changed id = @machine . id begin @logger . debug ( "Instantiating the driver for machine ID: #{@machine.id.inspect}" ) @driver = VagrantPlugins :: Parallels :: Driver :: Meta . new ( id ) rescue VagrantPlugins :: Parallels :: Driver :: Meta :: VMNotFound @logger . debug ( 'VM not found! Clearing saved machine ID and reloading.' ) id = nil retry end end
If the machine ID changed, then we need to rebuild our underlying
driver.
If the machine ID changed then we need to rebuild our underlying driver .
# The virtual machine doesn't exist, so we probably have a stale # ID. Just clear the id out of the machine and reload it.