summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2014-04-27 18:01:12 -0500
committerBrant Knudson <bknudson@us.ibm.com>2014-06-02 08:59:24 -0500
commit4b36da79f155716156ba05ffcf71edd3bd8fe7ce (patch)
tree2473754dedb4563d898bc2a5e3492bd72dd028d5 /keystoneclient/utils.py
parent04ded03cb076f63b026a995bb2908291297557f0 (diff)
downloadpython-keystoneclient-4b36da79f155716156ba05ffcf71edd3bd8fe7ce.tar.gz
Fix tests to use UUID strings rather than ints for IDs
Several tests were using ints rather than strings for IDs. The ints were changed to UUID strings. Change-Id: I65312509c72078c08ca284e313104e926d9885ba
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index d0db724..d3342f4 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -96,14 +96,8 @@ def print_dict(d, wrap=0):
def find_resource(manager, name_or_id):
"""Helper for the _find_* methods."""
- # first try to get entity as integer id
- try:
- if isinstance(name_or_id, int) or name_or_id.isdigit():
- return manager.get(int(name_or_id))
- except exceptions.NotFound:
- pass
- # now try the entity as a string
+ # first try the entity as a string
try:
return manager.get(name_or_id)
except (exceptions.NotFound):