From f2606bfa5d4dc97f8225aea2b3772559da9fdad9 Mon Sep 17 00:00:00 2001 From: Peter McAtominey Date: Tue, 1 Nov 2016 10:55:02 +0000 Subject: [PATCH] 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 --- builtin/providers/azurerm/resource_arm_sql_database.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/providers/azurerm/resource_arm_sql_database.go b/builtin/providers/azurerm/resource_arm_sql_database.go index 7de16dc53..35cd861a9 100644 --- a/builtin/providers/azurerm/resource_arm_sql_database.go +++ b/builtin/providers/azurerm/resource_arm_sql_database.go @@ -222,6 +222,8 @@ func resourceArmSqlDatabaseRead(d *schema.ResourceData, meta interface{}) error d.Set("creation_date", resp.CreationDate) d.Set("default_secondary_location", resp.DefaultSecondaryLocation) + flattenAndSetTags(d, resp.Tags) + return nil }