Fix zero case

This commit is contained in:
Clint Shryock 2015-02-25 11:05:14 -06:00
parent 5252623656
commit 31236b8f9e
1 changed files with 2 additions and 3 deletions

View File

@ -201,9 +201,8 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
opts.StorageType = aws.String(attr.(string))
}
if attr, ok := d.GetOk("backup_retention_period"); ok {
attr := d.Get("backup_retention_period")
opts.BackupRetentionPeriod = aws.Integer(attr.(int))
}
if attr, ok := d.GetOk("iops"); ok {
opts.IOPS = aws.Integer(attr.(int))