Fix zero case
This commit is contained in:
parent
5252623656
commit
31236b8f9e
|
@ -201,9 +201,8 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
|
||||||
opts.StorageType = aws.String(attr.(string))
|
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))
|
opts.BackupRetentionPeriod = aws.Integer(attr.(int))
|
||||||
}
|
|
||||||
|
|
||||||
if attr, ok := d.GetOk("iops"); ok {
|
if attr, ok := d.GetOk("iops"); ok {
|
||||||
opts.IOPS = aws.Integer(attr.(int))
|
opts.IOPS = aws.Integer(attr.(int))
|
||||||
|
|
Loading…
Reference in New Issue