openstack-python-openstackc.../openstackclient
melanie witt d123be0819 Fix 'openstack keypair list --project <project>'
The --project option of 'openstack keypair list' is supposed to filter
keypairs by a project but has not been working and instead returns
keypairs from all projects.

The reason appears to be because it uses a request for a user list
filtered by project but tenant_id/project_id is not a valid filter for
GET /users.

This fixes the issue by requesting role assignments for the specified
project and then requesting keypairs for users with a role in the
project.

This change depends on a recent openstacksdk bug fix change
Ic552dee83d56278d2b866de0cb365a0c394fe26a which fixed the user_id query
parameter for the compute /os-keypairs APIs. The bug fix was released in
openstacksdk 4.4.0.

Closes-Bug: #2096947

Change-Id: Ibb5757766e3040e58d64388b95678fab9b2b6f23
2025-04-10 17:59:29 -07:00
..
api pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
common compute: Migrate to 'compute' client alias 2025-04-03 16:39:03 +01:00
compute Fix 'openstack keypair list --project <project>' 2025-04-10 17:59:29 -07:00
identity Merge "Remove use of formatter function" 2025-04-02 10:19:34 +00:00
image image: Migrate 'create image' volume calls to SDK 2025-04-04 18:11:27 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2025-04-02 03:07:33 +00:00
network Refactor network fakes to sdk properties PART6 2025-04-08 16:36:48 +00:00
object Permit use of tuple API_VERSIONS 2025-04-01 10:36:02 +01:00
releasenotes/notes Show Created At column for volume backups 2024-05-19 22:17:06 +02:00
tests Fix 'openstack keypair list --project <project>' 2025-04-10 17:59:29 -07:00
volume volume: Make better use of argparse 2025-04-04 18:11:27 +01:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Permit use of tuple API_VERSIONS 2025-04-01 10:36:02 +01:00