зеркало из https://github.com/microsoft/fog.git
[rackspace] fix model notfound handling
This commit is contained in:
Родитель
036d0e4b39
Коммит
7f34e1300a
|
@ -29,7 +29,7 @@ module Fog
|
|||
def get(flavor_id)
|
||||
data = connection.get_flavor_details(flavor_id).body['flavor']
|
||||
new(data)
|
||||
rescue Excon::Errors::NotFound
|
||||
rescue Fog::Rackspace::Servers::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ module Fog
|
|||
def get(image_id)
|
||||
data = connection.get_image_details(image_id).body['image']
|
||||
new(data)
|
||||
rescue Excon::Errors::NotFound
|
||||
rescue Fog::Rackspace::Servers::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ module Fog
|
|||
if server = connection.get_server_details(server_id).body['server']
|
||||
new(server)
|
||||
end
|
||||
rescue Excon::Errors::NotFound
|
||||
rescue Fog::Rackspace::Servers::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче