diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index a39af23c3..b2e371b1f 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -101,7 +101,7 @@ def find_resource(manager, name_or_id): # finally try to find entity by name try: - if isinstance(name_or_id, str): + if isinstance(name_or_id, six.binary_type): name_or_id = name_or_id.decode('utf-8', 'strict') return manager.find(name=name_or_id) except exceptions.NotFound: