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