summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorMichael Solberg <msolberg@redhat.com>2013-06-11 12:00:14 -0400
committerAdam Young <ayoung@redhat.com>2013-08-27 16:29:01 -0400
commit1bd5b7328b2d25f88856912d25a89637996cceb5 (patch)
treeddfe85ce3d835c2d481aa22e2c9c87d7a4d169d0 /keystoneclient/utils.py
parent415e01645d13a14911edf457bbd8af5d199cd1f7 (diff)
downloadpython-keystoneclient-1bd5b7328b2d25f88856912d25a89637996cceb5.tar.gz
remove the UUID check for userids
Change-Id: I548d8ea292f737a6b5b0dddd8271a0cf690392a0 Fixes: bug #1189933
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index 12d9eea..f4b547a 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -1,7 +1,6 @@
import getpass
import hashlib
import sys
-import uuid
import prettytable
@@ -78,11 +77,10 @@ def find_resource(manager, name_or_id):
except exceptions.NotFound:
pass
- # now try to get entity as uuid
+ # now try the entity as a string
try:
- uuid.UUID(str(name_or_id))
return manager.get(name_or_id)
- except (ValueError, exceptions.NotFound):
+ except (exceptions.NotFound):
pass
# finally try to find entity by name