Skip to content

adminURL may not be available, prevent crash#8

Closed
reidrac wants to merge 1 commit intoopenstack:masterfrom
reidrac:master
Closed

adminURL may not be available, prevent crash#8
reidrac wants to merge 1 commit intoopenstack:masterfrom
reidrac:master

Conversation

@reidrac
Copy link

@reidrac reidrac commented Nov 13, 2012

If there's no adminURL endpoint in the serviceCatalog (ie. in a objtect-store,
in Rackspace identity service there's onlu publicURL and internalURL), unconditionally
accessing the first element of management_url property of AccesInfo may raise:

Authorization Failed: 'NoneType' object has no attribute 'getitem'

This change verifies that management_url is a tuple, otherwise management_url will be None.

If there's no adminURL endpoint in the serviceCatalog (ie. in a objtect-store,
in Rackspace identity service there's onlu publicURL and internalURL), unconditionally
accessing the first element of management_url property of AccesInfo may raise:

  Authorization Failed: 'NoneType' object has no attribute '__getitem__'

This change verifies that management_url is a tuple, otherwise management_url will be None.
@openstack-gerrit
Copy link

Thank you for contributing to OpenStack!

openstack/python-keystoneclient uses Gerrit for code review.

Please visit http://wiki.openstack.org/GerritWorkflow and follow the instructions there to upload your change to Gerrit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants