Merge pull request #1333 from wimnat/feature/issue-1332
rds module now will exit gracefully when resource=none
This commit is contained in:
commit
57c8547a3b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue