mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
9ef3e070c2
commit
3c15a32764
1 changed files with 2 additions and 4 deletions
|
@ -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)}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue