lib/fog/rackspace/models/identity/users.rb in fog-maestrodev-1.8.0.20130114204828 vs lib/fog/rackspace/models/identity/users.rb in fog-maestrodev-1.14.0.20130806165225
- old
+ new
@@ -16,19 +16,19 @@
def get(user_id)
data = service.get_user_by_id(user_id).body['user']
new(data)
rescue Excon::Errors::NotFound
nil
- rescue Excon::Errors::NotAuthorized
+ rescue Excon::Errors::Unauthorized
nil
end
def get_by_name(user_name)
data = service.get_user_by_name(user_name).body['user']
new(data)
rescue Excon::Errors::NotFound
nil
- rescue Excon::Errors::NotAuthorized
+ rescue Excon::Errors::Unauthorized
nil
end
end
end
end