Check lookup for not found error and allow it to fall through

This commit is contained in:
Chris Roberts 2021-03-05 08:52:08 -08:00 committed by Paul Hinze
parent cbc2ecac0a
commit 55d57595c4
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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(