diff options
| author | melanie witt <melwittt@gmail.com> | 2022-02-09 19:48:42 +0000 |
|---|---|---|
| committer | melanie witt <melwittt@gmail.com> | 2022-02-09 23:26:25 +0000 |
| commit | 72a2477ec07851f13dbc05e6777f7f60573d75dd (patch) | |
| tree | b9045c454daa5a686e4a1387653e9ff8426a4ec0 /openstackclient/object | |
| parent | 27843fc232622a756d0c6a0e7d4ddecbddb2ae11 (diff) | |
| download | python-openstackclient-72a2477ec07851f13dbc05e6777f7f60573d75dd.tar.gz | |
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
Diffstat (limited to 'openstackclient/object')
0 files changed, 0 insertions, 0 deletions
