Fixes parameters passed to subnet_group_absent

This commit is contained in:
Claudiu Popescu 2015-04-13 15:43:09 +02:00
parent 7d2e3404ae
commit 9660b82c1a

View File

@ -415,9 +415,7 @@ def subnet_group_absent(name, tags=None, region=None, key=None, keyid=None, prof
ret['comment'] = 'RDS subnet group {0} is set to be removed.'.format(name)
ret['result'] = None
return ret
deleted = __salt__['boto_rds.delete_subnet_group'](name, skip_final_snapshot,
final_db_snapshot_identifier,
region, key, keyid, profile)
deleted = __salt__['boto_rds.delete_subnet_group'](name, region, key, keyid, profile)
if not deleted:
ret['result'] = False
ret['comment'] = 'Failed to delete {0} RDS subnet group.'.format(name)