Check lookup for not found error and allow it to fall through
This commit is contained in:
parent
cbc2ecac0a
commit
55d57595c4
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user