Merge pull request #1350 from fanhaf/panic_DBName_null

Provider/AWS: RDS - Avoid panics when DBName is not set
This commit is contained in:
Paul Hinze 2015-04-01 09:02:52 -05:00
commit 85c89c3ec6
1 changed files with 5 additions and 1 deletions

View File

@ -304,7 +304,11 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
return nil
}
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)