python-openstackclient/openstackclient/compute
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
..
v2 Fix 'server event list|show' for deleted servers 2022-02-09 23:26:25 +00:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py Low-level Compute v2 API: security group 2017-04-11 02:08:04 -05:00