microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
35 stars 14 forks source link

DLP Policies, simplify environment attributes #136

Closed mawasile closed 11 months ago

mawasile commented 1 year ago

Describe the bug

Currently environments attribute in data source and resource DLP Policies if an array of objects but its enough for it to be a simple array for strings (env IDs). Anyways the Env Id is marked as "name" which is wrong, because the attribute should be "id" instead.

Sample Terraform Code

Now

...
 environments   = [
                {
                    name = "21a754f7-06e7-eb31-8266-bfe55ae1b358"
                },
                {
                    name = "7e0b37a6-fa02-ea7f-892a-79a933960d43"
                },
            ]
...

Expected behavior

...
 environments   = [ "21a754f7-06e7-eb31-8266-bfe55ae1b358", "7e0b37a6-fa02-ea7f-892a-79a933960d43" ]
...

Contribution

Do you plan to raise a PR to address this issue?