-
Notifications
You must be signed in to change notification settings - Fork 45
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
fix: equinix_metal_organization.project_ids data #781
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening this PR, @billf. The changes make sense. What error did you receive that triggered this PR? |
|
@billf would you be able to add a test covering this behavior so we can avoid reintroducing the bug in the future? The test would look a lot like the existing organization data source test: https://github.com/equinix/terraform-provider-equinix/blob/e158a616ca5ed96ff0aed1ce18f9a396637c1973/internal/resources/metal/organization/datasource_test.go, resource "equinix_metal_organization" "test" {
name = "tfacc-datasource-org-%d"
description = "quux"
address {
address = "tfacc org street"
city = "london"
zip_code = "12345"
country = "GB"
}
}
resource "equinix_metal_project" "test" {
name = "tfacc-datasource-org-project"
organization_id = equinix_metal_organization.test.id
}
data "equinix_metal_organization" "test" {
organization_id = equinix_metal_project.test.id
} |
@ctreatma not a problem; it's actually why this PR has remained in draft mode.
i'll take a look, thanks for the pointer. |
No description provided.