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

[bbg] failing gets return not founds

This commit is contained in:
geemus 2010-06-02 19:43:58 -07:00
parent f13ffdd54c
commit 961a333fd0
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ module Fog
def get(product_id)
response = connection.get_product(product_id)
new(response.body)
rescue Excon::Errors::Forbidden, Excon::Errors::NotFound
rescue Excon::Errors::NotFound
nil
end

View file

@ -32,7 +32,7 @@ module Fog
def get(template_id)
response = connection.get_template(template_id)
new(response.body)
rescue Excon::Errors::Forbidden, Excon::Errors::NotFound
rescue Excon::Errors::NotFound
nil
end

View file

@ -29,7 +29,7 @@ module Fog
if server_id && server = connection.get_block(server_id).body
new(server)
end
rescue Excon::Errors::Forbidden, Excon::Errors::NotFound
rescue Excon::Errors::NotFound
nil
end