From 5b8b6a3da308ebcc4bdf4c07138a445ad8333133 Mon Sep 17 00:00:00 2001 From: Allan Targino <13934447+allantargino@users.noreply.github.com> Date: Thu, 17 Dec 2020 23:49:31 -0300 Subject: [PATCH] fix tags for databricks datasource --- .../services/databricks/databricks_workspace_data_source.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azurerm/internal/services/databricks/databricks_workspace_data_source.go b/azurerm/internal/services/databricks/databricks_workspace_data_source.go index 155245554146..4a1d64f3cf30 100644 --- a/azurerm/internal/services/databricks/databricks_workspace_data_source.go +++ b/azurerm/internal/services/databricks/databricks_workspace_data_source.go @@ -7,6 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tags" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) @@ -41,6 +42,8 @@ func dataSourceDatabricksWorkspace() *schema.Resource { Type: schema.TypeString, Computed: true, }, + + "tags": tags.Schema(), }, } } @@ -72,5 +75,5 @@ func dataSourceDatabricksWorkspaceRead(d *schema.ResourceData, meta interface{}) d.Set("workspace_url", props.WorkspaceURL) } - return nil + return tags.FlattenAndSet(d, resp.Tags) }