1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|identity] Handle NotAuthorized respones from the identity API in the user model

This commit is contained in:
Brian Hartsock 2012-06-25 22:56:53 -04:00
parent 788d452df2
commit bae7e50765

View file

@ -18,6 +18,8 @@ module Fog
new(data)
rescue Excon::Errors::NotFound
nil
rescue Excon::Errors::NotAuthorized
nil
end
def get_by_name(user_name)
@ -25,6 +27,8 @@ module Fog
new(data)
rescue Excon::Errors::NotFound
nil
rescue Excon::Errors::NotAuthorized
nil
end
end
end