Check args correctly in boto_rds

Fixes #29933
This commit is contained in:
Mike Place 2015-12-22 09:03:57 -07:00
parent 05d2aaaef2
commit 8bab5eaeaa

View file

@ -486,7 +486,7 @@ def delete(name, skip_final_snapshot=None, final_db_snapshot_identifier=None,
'''
conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
if not skip_final_snapshot or final_db_snapshot_identifier:
if not skip_final_snapshot and not final_db_snapshot_identifier:
raise SaltInvocationError('At least on of the following must'
' be specified: skip_final_snapshot'
' final_db_snapshot_identifier')