Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/ip_list: Remove item.id from schema #796

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

jacobbednarz
Copy link
Member

Despite the item ID being marked as Computed, it is showing
unnecessary changes when running apply without any changes. For
whatever reason, the ID being returned is changing and Terraform is
trying to keep it in sync.

As we aren't using it, let's get rid of it and avoid the hassle of
keeping it in sync.

Despite the `item` ID being marked as Computed, it is showing
unnecessary changes when running `apply` without any changes. For
whatever reason, the ID being returned is changing and Terraform is
trying to keep it in sync.

As we aren't using it, let's get rid of it and avoid the hassle of
keeping it in sync.
@jacobbednarz
Copy link
Member Author

@cehrig When this was added, was there any particular reason the item ID was required? Are we 👌 to do away with it?

@cehrig
Copy link

cehrig commented Sep 10, 2020

Yeap, it's OK to remove it atm. since the resource is replacing the current list when making any changes to the items. That very likely is the reason why Item IDs are changing.

If I find some time, I'll try to find a way to explicitly remove / add / update items by their ID. When I initially created the resource there were some very strange ordering side effect when working on the Item IDs, so I decided to go the full-replace route.

@jacobbednarz
Copy link
Member Author

Awesome, thanks for the confirmation. We can always add it back in if we have a way of updating the list items without replacing the entire list.

@jacobbednarz jacobbednarz merged commit 63227fa into cloudflare:master Sep 10, 2020
@jacobbednarz jacobbednarz deleted the remove-item-id branch September 10, 2020 21:06
@jacobbednarz jacobbednarz changed the title resouce/ip_list: Remove item.id from schema resource/ip_list: Remove item.id from schema Sep 10, 2020
boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants