Comment 8 for bug 1508374

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

Reviewed: https://review.openstack.org/339150
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=b405d71a5f9562414ce6b08f7eb4556f534dd273
Submitter: Jenkins
Branch: master

commit b405d71a5f9562414ce6b08f7eb4556f534dd273
Author: Mikhail Nikolaenko <email address hidden>
Date: Thu Jul 7 19:30:59 2016 +0300

    Fix missing service_catalog parameter in Client object

    Return None if service_catalog parameter does not exist.

    service_catalog is the property and it is not initialized on object creation.
    service_catalog tries to get value from auth_ref and raises AttributeError
    exception if auth_ref is not initialized. It worked before we introduced
    sessions, because authentication happened on client instantiation. Now,
    when sessions are used, auth_ref is not initialized until the first
    request. This change adds try-catch block in service_catalog property
    to catch this error.

    Change-Id: I58eb888f0989241f9e5626564bd48d901b324d36
    Closes-Bug: #1508374