boto_rds: fix the condition

This commit is contained in:
Quan Tong Anh 2015-11-13 09:59:09 +07:00
parent 30d9397380
commit 1f7d315968

View File

@ -490,8 +490,8 @@ 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:
raise SaltInvocationError('At least on of the following must'
if not skip_final_snapshot and not final_db_snapshot_identifier:
raise SaltInvocationError('At least one of the following must'
' be specified: skip_final_snapshot'
' final_db_snapshot_identifier')
try: