terraform-provider-launchdarkly icon indicating copy to clipboard operation
terraform-provider-launchdarkly copied to clipboard

benign drift on fallthrough.rollout_weights

Open nhomble opened this issue 2 years ago • 1 comments

Using provider version 2.0

We see that terraform detects drift from our LD instance because fallthrough.rollout_weights becomes []. To avoid the noise in detection, I think the provider could handle nil better instead of waiting for the reconciliation.

My best guess is that https://github.com/launchdarkly/terraform-provider-launchdarkly/blob/main/launchdarkly/fallthrough_helper.go#L73 could be enhanced to default to [] before the percent rollout check.

nhomble avatar May 12 '23 21:05 nhomble

Hey @nhomble,

Thanks for bringing this to our attention. I've created an internal ticket to investigate a solution. We'll be sure to update this issue as we learn more.

Thanks, Henry

ldhenry avatar May 26 '23 15:05 ldhenry