secrets.list() raises TypeError

Bug #1427423 reported by Douglas Mendizábal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-barbicanclient
Fix Released
Critical
Douglas Mendizábal

Bug Description

secrets.list() raises a TypeError due to recent changes in the API

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-35-1c18283e9e1f> in <module>()
----> 1 barbican.secrets.list()

/Users/doug1088/Workspaces/CloudKeep/python-barbicanclient/barbicanclient/secrets.pyc in list(self, limit, offset, name, algorithm, mode, bits)
    417 return [
    418 Secret(api=self._api, **s)
--> 419 for s in response.get('secrets', [])
    420 ]

TypeError: __init__() got an unexpected keyword argument 'secret_type'

Changed in python-barbicanclient:
importance: Undecided → Critical
assignee: nobody → Douglas Mendizábal (dougmendizabal)
status: New → Confirmed
status: Confirmed → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-barbicanclient (master)

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

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

Reviewed: https://review.openstack.org/160561
Committed: https://git.openstack.org/cgit/openstack/python-barbicanclient/commit/?id=5579cf57ebe4398f2db5a9e784609aadf4901e55
Submitter: Jenkins
Branch: master

commit 5579cf57ebe4398f2db5a9e784609aadf4901e55
Author: Douglas Mendizábal <email address hidden>
Date: Mon Mar 2 17:57:25 2015 -0600

    Add secret_type to Secret constructor

    The secret_type attribute was recently introduced on the Barbican
    server. [1] Passing a response that includes the secret_type to the
    constructor results in a TypeError

    This is the kind of error that the upcoming python-barbicanclient gate
    will help find. It should be covered by an existing test in the
    functional test suite.

    [1] https://review.openstack.org/#/c/156385/

    Change-Id: Ibcf42a79ec11e9c05121763ab18d9bc41d6f4dcf
    Closes-Bug: #1427423

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

This issue was fixed in the openstack/python-barbicanclient 3.0.3 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.