Merge pull request #1350 from fanhaf/panic_DBName_null
Provider/AWS: RDS - Avoid panics when DBName is not set
This commit is contained in:
commit
85c89c3ec6
|
@ -304,7 +304,11 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
d.Set("name", *v.DBName)
|
||||
if v.DBName != nil {
|
||||
d.Set("name", *v.DBName)
|
||||
} else {
|
||||
d.Set("name", "")
|
||||
}
|
||||
d.Set("username", *v.MasterUsername)
|
||||
d.Set("engine", *v.Engine)
|
||||
d.Set("engine_version", *v.EngineVersion)
|
||||
|
|
Loading…
Reference in New Issue