Change-Id: I35aab8eb9d95fb29eda0168468f1e64451c2b7b5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
self._client.get_token()
# keystone with external LDAP contains large ids, not uuid format
# utils.validate_uuid4(name) cannot be used
self._client.get_token()
# keystone with external LDAP contains large ids, not uuid format
# utils.validate_uuid4(name) cannot be used
- for user in self.list():
+ user_list = self.list()
+ for user in user_list:
if name == user['_id']:
return user
if name == user['_id']:
return user
if name == user['username']:
return user
raise NotFound("User {} not found".format(name))
if name == user['username']:
return user
raise NotFound("User {} not found".format(name))