openstacksdk/openstack
Artom Lifshitz 2ea501c069 stack event loops: handle get None result
We've seen at least one case in CI of `stack` being None when polling
for stack events:

    <snip>
      File "openstack/cloud/_orchestration.py", line 185, in delete_stack
        event_utils.poll_for_events(
      File "openstack/orchestration/util/event_utils.py", line 109,
      in poll_for_events
        stack_status = stack['stack_status']
    TypeError: 'NoneType' object is not subscriptable

Handle this case with a simple if.

Change-Id: Icce6e7b600125cf98e56d98e1c3df4177414398b
2024-08-30 09:56:16 -04:00
..
_hacking cloud: Remove use of OpenStackCloudCreateException 2024-04-26 10:45:27 +01:00
accelerator exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
baremetal Merge "baremetal: Enhance VIF attachment with port and portgroup UUIDs" 2024-07-22 21:52:47 +00:00
baremetal_introspection exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
block_storage Merge "block storage: Add missing 'find_type' proxy API to v2" 2024-08-07 13:41:45 +00:00
cloud Deprecate 'use_direct_get' parameter 2024-08-08 17:54:39 +01:00
clustering exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
common trivial: Prepare for pyupgrade pre-commit hook 2024-04-26 17:38:54 +01:00
compute Support server unshelve to specific host 2024-08-08 17:49:03 +02:00
config trivial: Prepare for pyupgrade pre-commit hook 2024-04-26 17:38:54 +01:00
container_infrastructure_management exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
database exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
dns Merge "exceptions: ResourceNotFound -> NotFoundException" 2024-07-19 16:49:54 +00:00
fixture trivial: Prepare for pyupgrade pre-commit hook 2024-04-26 17:38:54 +01:00
identity exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
image image: Check path is a file before attempting to use it (redux) 2024-08-07 13:33:42 +01:00
instance_ha exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
key_manager exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
load_balancer exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
message exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
network exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
object_store exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
orchestration stack event loops: handle get None result 2024-08-30 09:56:16 -04:00
placement exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
shared_file_system exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
test trivial: Prepare for pyupgrade pre-commit hook 2024-04-26 17:38:54 +01:00
tests Merge "image: Check path is a file before attempting to use it (redux)" 2024-08-09 11:34:14 +00:00
workflow exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
__init__.py docs: Add docstring to 'openstack' module 2022-11-21 18:07:54 +00:00
__main__.py Blackify everything else 2023-05-05 11:31:36 +01:00
_log.py mypy: Add typing to openstack._log 2024-01-09 10:54:07 +00:00
_services_mixin.py Bump black to 23.3.0 2023-05-05 12:46:17 +01:00
connection.py Deprecate 'use_direct_get' parameter 2024-08-08 17:54:39 +01:00
exceptions.py exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
format.py openstack.format: Remove 'serialize' classmethod 2023-08-17 11:47:01 +01:00
proxy.py exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
py.typed Start supporting type info 2019-10-04 13:08:21 +02:00
resource.py exceptions: ResourceNotFound -> NotFoundException 2024-06-13 12:39:24 +01:00
service_description.py Enforce endpoint override for services without discovery 2023-11-07 13:19:37 +01:00
utils.py mypy: Address issues with top-level files 2023-08-17 11:47:38 +01:00
version.py Move version definition 2016-06-03 09:32:26 -04:00
warnings.py compute, volume: Improve 'update_quota_set' 2024-07-11 12:59:45 +01:00