Fixed call to undefined attribute when RDS module timeouts waiting.

This commit is contained in:
Timothy Appnel 2015-08-26 11:53:39 -04:00 committed by Matt Clay
parent f97d00fbad
commit d811a51744

View file

@ -610,7 +610,7 @@ def await_resource(conn, resource, status, module):
while wait_timeout > time.time() and resource.status != status: while wait_timeout > time.time() and resource.status != status:
time.sleep(5) time.sleep(5)
if wait_timeout <= time.time(): if wait_timeout <= time.time():
module.fail_json(msg="Timeout waiting for resource %s" % resource.id) module.fail_json(msg="Timeout waiting for RDS resource %s" % resource.name)
if module.params.get('command') == 'snapshot': if module.params.get('command') == 'snapshot':
# Temporary until all the rds2 commands have their responses parsed # Temporary until all the rds2 commands have their responses parsed
if resource.name is None: if resource.name is None: