russellcardullo / terraform-provider-pingdom

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

"teamids" always appears in plan #26

Closed kevinburkenotion closed 5 years ago

kevinburkenotion commented 5 years ago

Every time I run "terraform plan" I am told the teamids field is changing from 0 to 1.

  teamids.#:          "0" => "1"
  teamids.1479235611: "" => "123456"

Here's how I am specifying a team ID.

  teamids = [
    "${var.team_id}",
  ]
kevinburkenotion commented 5 years ago

Maybe the Pingdom API is returning teamids as a comma separated string, instead of as a list of integers? The JSON definition is for a list of integers, but the API docs are unclear.

kevinburkenotion commented 5 years ago

Submitted two PR's that should fix the issue, we're using them on our fork.