'catalog list' fails when region is not present

Bug #1429211 reported by Dean Troyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Dean Troyer

Bug Description

In a service catalog without 'region' defined, catalog list fails with a KeyError attempting to retrieve the region name from the endpoint dict.

Fall back to some value to maintain the field in the output.

Dean Troyer (dtroyer)
Changed in python-openstackclient:
assignee: nobody → Dean Troyer (dtroyer)
milestone: none → m8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/162241

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/162241
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=ee2ba48aa4d32e12a18e2722492e99fca5dd03e5
Submitter: Jenkins
Branch: master

commit ee2ba48aa4d32e12a18e2722492e99fca5dd03e5
Author: Dean Troyer <email address hidden>
Date: Fri Mar 6 11:27:54 2015 -0600

    Fix catalog list when region name is absent

    Some service catalogs in the wild have services without region names defined.
    Let's be nice and stuff in a default value indicating this state.

    Closes-Bug: #1429211
    Change-Id: I3ebe2534dc6e3438aaeddc7757fb2db4117eae4b

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
summary: - catalog list fails when region is not present
+ 'catalog list' fails when region is not present
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.