Skip to content

Commit

Permalink
Fix check for backup_retention_period parameter. Closes GH-264.
Browse files Browse the repository at this point in the history
  • Loading branch information
garnaat committed Jul 19, 2011
1 parent de64aec commit ea9039f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boto/rds/__init__.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ea9039f

Please sign in to comment.