Fixing boto_rds.py delete() wait_for_deletion, if statement was incorrectly checking the return value of boto_rds.py exists() method.

This commit is contained in:
Eldad Rudich 2017-03-23 21:51:02 +02:00
parent 9ef3e070c2
commit 3c15a32764

View file

@ -632,10 +632,8 @@ def delete(name, skip_final_snapshot=None, final_db_snapshot_identifier=None,
start_time = time()
while True:
if not __salt__['boto_rds.exists'](name=name, region=region,
key=key, keyid=keyid,
profile=profile):
res = __salt__['boto_rds.exists'](name=name, region=region, key=key, keyid=keyid, profile=profile)
if not res.get('exists'):
return {'deleted': bool(res), 'message':
'Deleted RDS instance {0} completely.'.format(name)}