dynatrace-oss / terraform-provider-dynatrace

Apache License 2.0
71 stars 33 forks source link

Provider failed to plan correctly for dynatrace_business_events_oneagent #511

Closed hhminh closed 3 months ago

hhminh commented 3 months ago

Describe the bug Provider failed to plan correctly for dynatrace_business_events_oneagent.

To Reproduce Steps to reproduce the behavior:

  1. Create a dynatrace_business_events_oneagent
  2. Apply it once
  3. Apply again and it will not be able to see the trigger already exists and try to delete, re-create same trigger and even add an empty trigger block after. This does not always happen I have seen this happens on 1/3 of the blocks not all of them. This made the apply to fail due to the extra empty block on top of the unnecessary change detected:

image

See screenshot section for the actual plan :

Expected behavior It should detect that there is no change

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

hhminh commented 3 months ago

Please note that I have no such empty trigger block, somehow terraform dynatrace provider thinks there is an empty trigger block

Dynatrace-Reinhard-Pilz commented 3 months ago

Hello @hhminh,

Root cause here is a bug in the Terraform Plugin SDK. We unfortunately rarely can predict which resources are affected - hence we can only react once customers are noticing a problem with empty blocks.

The issue will be fixed with the upcoming release of the provider.

best regards, Reinhard