Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] mishandling empty response in
databricks_mws_workspaces
data …
…source (#4414) ## Changes This PR fixes the `databricks_mws_workspaces` datasource to correctly return an empty list when no mws workspaces are configured. It would previously return a nil, which caused certain Terraform programs to misbehave. For example this would error instead of correctly returning 0: ``` data "databricks_mws_workspaces" "example" {} output "workspace_ids" { value = data.databricks_mws_workspaces.example.ids } output "workspace_count" { value = length(data.databricks_mws_workspaces.example.ids) } ``` ## Tests I've added a test similar to the existing tests for the mws_workspaces data source
- Loading branch information