Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] databricks_mws_workspaces returns null ids when no workspaces are available #4413

Open
VenelinMartinov opened this issue Jan 17, 2025 · 1 comment

Comments

@VenelinMartinov
Copy link

Configuration

terraform {
  required_providers {
    databricks = {
      source  = "databricks/databricks"
      version = ">= 1.63.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)
}

Expected Behavior

I'd expect the workspace_count output to be 0

Actual Behavior

Terraform throws an error: Invalid value for "value" parameter: argument must not be null.

Steps to Reproduce

  1. terraform apply

Terraform and provider versions

Terraform v1.10.4
on darwin_arm64

Is it a regression?

no

Important Factoids

The additional context here is that I am one of the maintainers of the pulumi-databricks provider: https://github.com/pulumi/pulumi-databricks

There this issue manifests as a null pointer exception in the languages which have this (like C#).

Would you like to implement a fix?

I'd be happy to if you gave me some pointers about setting up tests for this.

@VenelinMartinov
Copy link
Author

VenelinMartinov commented Jan 17, 2025

Raised a PR for this: #4414

Let me know if you have any feedback here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant