1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2503 from maestrodev/google-not-found

[google|compute] Rescue from Fog::Errors::NotFound instead of Excon
This commit is contained in:
Nat Welch 2013-12-24 09:11:25 -08:00
commit 7880a55d6a
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ module Fog
def get(identity, zone_name = nil)
data = connection.get_machine_type(identity, zone_name).body
new(data)
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end

View file

@ -40,7 +40,7 @@ module Fog
else
new(response.body)
end
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end

View file

@ -17,7 +17,7 @@ module Fog
def get(identity)
data = service.get_zone(identity).body
new(data)
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end