fix: equinix_metal_organization.project_ids data#781
fix: equinix_metal_organization.project_ids data#781billf wants to merge 2 commits intoequinix:mainfrom
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.