mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
rescue with correct Linode::NotFound namespace
This commit is contained in:
parent
75df4b28e0
commit
a2ce26b65f
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ module Fog
|
|||
def get(id)
|
||||
requires :server
|
||||
new disks(server.id, id).first
|
||||
rescue Fog::Linode::Compute::NotFound
|
||||
rescue Fog::Compute::Linode::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ module Fog
|
|||
|
||||
def get(id)
|
||||
new flavors(id).first
|
||||
rescue Fog::Linode::Compute::NotFound
|
||||
rescue Fog::Compute::Linode::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue