Merge pull request #1464 from hashicorp/b-aws-db-fix-name

provider/aws: Fix type mismatch issue with AWS RDS
This commit is contained in:
Clint 2015-04-09 15:02:20 -05:00
commit c7cd77b822
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
}