Open displague opened 8 months ago
The resource already ignores changes to ordering in the facilities
attribute, but it does that via a SuppressDiff
function, so when other changes happen in the facilities
attribute, the diff shows those changes as well as the changes to the ordering.
In this case, there is one facility added to the list: + "la4",
. I'm not sure how that change is coming in; I guess the local.facilities
--read from the plan data and cached in terraform state--includes la4
, but the API response for the spot market request doesn't include that facility for some reason?
I'm not sure how much we should really sink into this, given the impending deprecation of facilities
platform-wide. At some point soonish, the affected attribute should become read-only, at which point the weird diff behavior goes away. That said, adding a CustomizeDiff
function for the resource would at least make it easier to see what the real change is, even if we can't track down why the facilities list is different.
Terraform Version
latest used in CI
Equinix Provider Version
version = "1.18.0"
Effected Terraform Resources
equinix_metal_spot_market_request
Terraform Config Files
Debug Output
Panic Output
No response
Expected Behavior
Mismatched order of the returned facilities should not trigger replacement.
Actual Behavior
replacement is needed
Steps to Reproduce
Run the project CI - that's where this bug was found. TestAccDataSourceMetalSpotMarketRequest_basic https://github.com/equinix/terraform-provider-equinix/actions/runs/6629149298/job/18007833452#step:5:3011