1
0
Fork 0
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:
Marques Johansson 2014-09-02 15:58:00 -04:00
parent 75df4b28e0
commit a2ce26b65f
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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