зеркало из https://github.com/microsoft/fog.git
[bbg] failing gets return not founds
This commit is contained in:
Родитель
f13ffdd54c
Коммит
961a333fd0
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче