mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 10:13:09 +00:00
Fix for issue #1332 - when instance is has finished deleting and get_db_instance returns None, exit gracefully
This commit is contained in:
@@ -624,6 +624,8 @@ def await_resource(conn, resource, status, module):
|
||||
if resource.name is None:
|
||||
module.fail_json(msg="Problem with instance %s" % resource.instance)
|
||||
resource = conn.get_db_instance(resource.name)
|
||||
if resource is None:
|
||||
break
|
||||
return resource
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user