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:
parent
788d452df2
commit
bae7e50765
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue