provider/aws: Fix type mismatch issue with AWS RDS

This commit is contained in:
Clint Shryock 2015-04-09 14:27:52 -05:00
parent 0e3eaa391f
commit 6ff9b0c776
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
arn, err := buildRDSARN(d, meta)
if err != nil {
name := "<empty>"
if v.DBName != "" {
if v.DBName != nil && *v.DBName != "" {
name = *v.DBName
}