key_manager.find_secret() fails with unexpected keyword argument 'microversion'

Bug #2066045 reported by Markus Hentsch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstacksdk
New
Undecided
Unassigned

Bug Description

The following sample code snippet fails with openstacksdk 3.1.0:

```
import openstack
conn = openstack.connect(cloud="my-devstack")
conn.key_manager.find_secret("my-secret-name")
```

Error message:

```
    ...
    return match.fetch(session, microversion=microversion, **params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Secret.fetch() got an unexpected keyword argument 'microversion'
```

Seems like the fetch() implementation for the Secret resource class[^1] is missing a `**params` kwargs argument in contrast to its base class[^2].

[^1]: https://github.com/openstack/openstacksdk/blob/0d5d48f65f3eae30f940504d319ea3515608a238/openstack/key_manager/v1/secret.py#L87-L94

[^2]: https://github.com/openstack/openstacksdk/blob/0d5d48f65f3eae30f940504d319ea3515608a238/openstack/resource.py#L1652-L1663

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.