Closed at-k closed 3 years ago
terraform plan detects differences on the list just showing item order, which makes no effect actually.
terraform plan
Example
# module.developer.onelogin_roles.role will be updated in-place ~ resource "onelogin_roles" "role" { ~ admins = [ - 34873631, 34873695, + 34873631, ] apps = [ 698140,
According to official reference, schema.TypeList represents an ordered collection of items.
an ordered collection of items
On the other hand, TypeSet is for used to represent an unordered collection of items,. It seems better for Role.
used to represent an unordered collection of items,
Is there any problem to change types of them?
Hey @at-k Thank you for the tip! I see the tests passing. Im going to merge this and release a new version. Thanks again 😄
Your changes will be in release v0.1.3
Problem
terraform plan
detects differences on the list just showing item order, which makes no effect actually.Example
Solution
According to official reference, schema.TypeList represents
an ordered collection of items
.On the other hand, TypeSet is for
used to represent an unordered collection of items,
. It seems better for Role.Is there any problem to change types of them?