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:
parent
f13ffdd54c
commit
961a333fd0
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue