Permalink
Browse files

Fix check for backup_retention_period parameter. Closes GH-264.

  • Loading branch information...
1 parent 2c4b278 commit 25632acc9047b9d7efc31b4cf04c51abd60b437f @garnaat garnaat committed Jul 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/rds/__init__.py
@@ -237,7 +237,7 @@ def create_dbinstance(self, id, allocated_storage, instance_class,
params['AvailabilityZone'] = availability_zone
if preferred_maintenance_window:
params['PreferredMaintenanceWindow'] = preferred_maintenance_window
- if backup_retention_period:
+ if backup_retention_period is not None:
params['BackupRetentionPeriod'] = backup_retention_period
if preferred_backup_window:
params['PreferredBackupWindow'] = preferred_backup_window
@@ -408,7 +408,7 @@ def modify_dbinstance(self, id, param_group=None, security_groups=None,
params['AllocatedStorage'] = allocated_storage
if instance_class:
params['DBInstanceClass'] = instance_class
- if backup_retention_period:
+ if backup_retention_period is not None:
params['BackupRetentionPeriod'] = backup_retention_period
if preferred_backup_window:
params['PreferredBackupWindow'] = preferred_backup_window

0 comments on commit 25632ac

Please sign in to comment.