summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index 479f7c0..ae489c8 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -99,6 +99,8 @@ def find_resource(manager, name_or_id):
# finally try to find entity by name
try:
+ if isinstance(name_or_id, str):
+ name_or_id = name_or_id.decode('utf-8', 'strict')
return manager.find(name=name_or_id)
except exceptions.NotFound:
msg = ("No %s with a name or ID of '%s' exists." %