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:
commit
7880a55d6a
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
|||
else
|
||||
new(response.body)
|
||||
end
|
||||
rescue Excon::Errors::NotFound
|
||||
rescue Fog::Errors::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue