russellcardullo / terraform-provider-pingdom

No longer maintained: Terraform provider to manage pingdom resources
MIT License
120 stars 107 forks source link

pingdom_contact data source returns wrong ID #85

Closed messiahUA closed 3 years ago

messiahUA commented 4 years ago

I have data "pingdom_contact" "pagerduty" with the correct name and I see that it finds a proper contact in the terraform debug logs, but in the end, the actual id in the state is different (the last element of contacts list)

marcelomilera commented 3 years ago

I came across the same issue. It seems that there's a small bug when using the "pingdom_contact" data source that always ends up retrieving the last element of the contacts list. This small PR should solve that #92