Merge pull request #29943 from cachedout/issue_29933

Check args correctly in boto_rds
This commit is contained in:
Mike Place 2015-12-22 10:15:48 -07:00
commit b36302291d

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')