provider/azurerm: fix sql_database resource reading tags (#9767)

tags were not being set in the read function

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMSqlDatabase_basic -timeout 120m
=== RUN   TestAccAzureRMSqlDatabase_basic
--- PASS: TestAccAzureRMSqlDatabase_basic (190.60s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	190.719s
This commit is contained in:
Peter McAtominey 2016-11-01 10:55:02 +00:00 committed by Paul Stack
parent 76fc688750
commit f2606bfa5d
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ func resourceArmSqlDatabaseRead(d *schema.ResourceData, meta interface{}) error
d.Set("creation_date", resp.CreationDate) d.Set("creation_date", resp.CreationDate)
d.Set("default_secondary_location", resp.DefaultSecondaryLocation) d.Set("default_secondary_location", resp.DefaultSecondaryLocation)
flattenAndSetTags(d, resp.Tags)
return nil return nil
} }