From bae7e50765c313707ec50d467a7b55446175c068 Mon Sep 17 00:00:00 2001 From: Brian Hartsock Date: Mon, 25 Jun 2012 22:56:53 -0400 Subject: [PATCH] [rackspace|identity] Handle NotAuthorized respones from the identity API in the user model --- lib/fog/rackspace/models/identity/users.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/fog/rackspace/models/identity/users.rb b/lib/fog/rackspace/models/identity/users.rb index 849ae2782..37112b0da 100644 --- a/lib/fog/rackspace/models/identity/users.rb +++ b/lib/fog/rackspace/models/identity/users.rb @@ -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