commit 3f2b53586ca804115d8cf91e43f63ec7a300e82c
Author: Ewan Mellor <email address hidden>
Date: Tue Dec 27 22:45:36 2011 -0800
Bug #909255: Endpoint handling broken on SQL backend by portable-identifiers changes
When deciding whether to translate UIDs to integer IDs or vice versa, use
hasattr(api.TENANT, 'uid_to_id') or hasattr(api.TENANT, 'id_to_uid') in place
of isinstance(api.TENANT, models.Tenant). This matches the code elsewhere
(e.g. user.py) and has the effect that the IDs will be translated correctly.
Reviewed: https:/ /review. openstack. org/2645 github. com/openstack/ keystone/ commit/ 3f2b53586ca8041 15d8cf91e43f63e c7a300e82c
Committed: http://
Submitter: Jenkins
Branch: master
commit 3f2b53586ca8041 15d8cf91e43f63e c7a300e82c
Author: Ewan Mellor <email address hidden>
Date: Tue Dec 27 22:45:36 2011 -0800
Bug #909255: Endpoint handling broken on SQL backend by portable- identifiers changes
When deciding whether to translate UIDs to integer IDs or vice versa, use api.TENANT, 'uid_to_id') or hasattr(api.TENANT, 'id_to_uid') in place api.TENANT, models.Tenant). This matches the code elsewhere
hasattr(
of isinstance(
(e.g. user.py) and has the effect that the IDs will be translated correctly.
Change-Id: Ia036bf310d48f8 f8aa5739cb3e09d 1f7364ad1a4