python-openstackclient/openstackclient
melanie witt 72a2477ec0 Fix 'server event list|show' for deleted servers
As of compute microversion >= 2.21, support for list and show of server
events for deleted servers was added. This however wasn't working using
the openstackclient because the compute GET /servers/{server_id} will
not return a deleted server, so osc_lib.utils.find_resource() fails to
find the server and the command bails early.

This adds a check for a uuid-like <server> arg and uses it directly if
the <server> cannot be found via find_resource().

A note is also added to the command help to indicate that list and show
for deleted servers will only work if a server ID is passed (name will
not work).

Story: 2009841
Task: 44443

Change-Id: Icd33b3b9a3a1855d7893dd111bbb2aca059f45fd
2022-02-09 23:26:25 +00:00
..
api Remove usage of six 2020-10-07 02:15:25 +00:00
common Merge "Add network update quota "limit_check" parameter" 2022-02-03 15:53:02 +00:00
compute Fix 'server event list|show' for deleted servers 2022-02-09 23:26:25 +00:00
identity Merge "Add name and enabled param in ListDomain parser" 2020-12-22 13:30:59 +00:00
image Remove 'get_osc_show_columns_for_sdk_resource' duplicates 2021-10-21 17:14:45 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Support Neutron Local IP CRUD 2022-01-28 17:24:04 +03:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests Fix 'server event list|show' for deleted servers 2022-02-09 23:26:25 +00:00
volume Merge "volume: Add 'volume transfer request create --(no-)snapshots' option" 2021-08-26 08:03:53 +00: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 Remove usage of six 2020-10-07 02:15:25 +00:00