openstack-python-openstackc.../openstackclient/compute
waf 3909e93301 evacuate: respect original SHUTOFF state in --wait completion
When running `openstack server evacuate --wait`, the command would hang
indefinitely if the instance was originally in SHUTOFF state, because
only “ACTIVE” was treated as a successful completion. We now capture
the server’s status before evacuation and dynamically include
“SHUTOFF” in the `success_status` list if the instance was already
shut off. This ensures that a shutoff instance is accepted as a valid
completion without requiring manual intervention.

Unit tests have been added and updated to cover both:
- pre-evacuation ACTIVE → success_status=['active']
- pre-evacuation SHUTOFF → success_status=['active','shutoff']

Closes-Bug: #2103426
Change-Id: I86ad1cd173a144b16fde1dbac87819fab2d7a50a
2025-05-21 16:52:24 +09:00
..
v2 evacuate: respect original SHUTOFF state in --wait completion 2025-05-21 16:52:24 +09:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py Permit use of tuple API_VERSIONS 2025-04-01 10:36:02 +01:00