implied role get fails with key error

Bug #1647934 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Medium
Steve Martinelli

Bug Description

While developing the CLI I discovered that calling the get_implied() function like this:

 response = identity_client.roles.get_implied(
            prior_role_id, implied_role_id)

returned an error:

 'role'

In the debugger:

> /opt/stack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/keystoneclient/v3/roles.py(174)get_implied()
-> return super(RoleManager, self).get(tail=url_tail, **kwargs)
(Pdb)
KeyError: ('role',)

Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-keystoneclient:
importance: Undecided → Medium
status: New → Triaged
status: Triaged → Confirmed
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

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

Changed in python-keystoneclient:
assignee: nobody → Steve Martinelli (stevemar)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

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

commit 0b00c0e7b17ad1a156fc2dbaccde97e3d47ba115
Author: Steve Martinelli <email address hidden>
Date: Sun Dec 18 13:07:59 2016 -0800

    re-work inference rule bindings

    - At least one API was not implemented (list_implied_roles)
    - the tests were lacking assertions and proper mocked responses
    - some of the functionality just didn't work (see bug)
    - returning Role objects instead of InferenceRule objects

    Related commits:
     - I80a40e88b571fe9b0eca3af8b705ea79f28eb904
     - I66e863fb83f8dfcca2c48116d4377df060f402c3

    Closes-Bug: 1647934
    Change-Id: I7b449a93d7d4d3eb9ca857f6c1f78f884bad2534

Changed in python-keystoneclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-keystoneclient 3.9.0

This issue was fixed in the openstack/python-keystoneclient 3.9.0 release.

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.