Comment 3 for bug 909255

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/2645
Committed: http://github.com/openstack/keystone/commit/3f2b53586ca804115d8cf91e43f63ec7a300e82c
Submitter: Jenkins
Branch: master

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.

    Change-Id: Ia036bf310d48f8f8aa5739cb3e09d1f7364ad1a4