Fix for issue #1332 - when instance is has finished deleting and get_db_instance returns None, exit gracefully

pull/18777/head
whiter 10 years ago committed by Matt Clay
parent 8859a7cf8e
commit d252e7c08f

@ -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

Loading…
Cancel
Save