From 55d57595c477471cfcfd1332e3044ca45f5f5b11 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 5 Mar 2021 08:52:08 -0800 Subject: [PATCH] Check lookup for not found error and allow it to fall through --- plugins/commands/serve/client/machine.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/commands/serve/client/machine.rb b/plugins/commands/serve/client/machine.rb index 4edad0465..b3924aad4 100644 --- a/plugins/commands/serve/client/machine.rb +++ b/plugins/commands/serve/client/machine.rb @@ -38,9 +38,8 @@ module VagrantPlugins machine: machine)) @resource_id = resp.machine.resource_id return - rescue => err - raise err - # validate this was really a 404 + rescue GRPC::NotFound + # Let this fall through so we create the machine end resp = c.upsert_machine(SRV::UpsertMachineRequest.new(