-
Notifications
You must be signed in to change notification settings - Fork 554
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
"tags" always updated if unsorted or are comma-separated #951
Comments
the easiest way is to use lifecycle policies https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#ignore_changes |
Correct me if I'm wrong, but if in this case I update it manually after realising I want to add another tag, it will be also ignored, right? In this case this more or less breaks functionality completely, apart from creation step. |
…rnally Using commas forces "tags" update on every bump.
I found the same issue. I use the provider in a module, so did the following:
I provided the tags as an list of strings to my module. Perhaps a good 'fix' would be to have the tags attribute changed to support an list of strings. This would be a change to the interface, but the old behavior of semi-colon separated strings could be supported. The proxmox provider should provide lossless round-tripping of the tags (so if the proxmox API or proxmox code sorts the tags then that should be allowed for). |
DOC #951: mention correct delimiter, the one Proxmox uses internally
Tags are never-ending updated, if a list in
*.tf
config is not sorted, or uses comma instead of semicolon.Reason: Proxmox responds with sorted list, thus 2 strings never match.
Same issue was discussed in #771.
Based on new user experience, 2 changes are proposed:
(unless breaks backward-compatibility)
Otherwise, every other new user of Telmate plugin will have increased learning curve and iether will re-invent a wheel, or choose to ignore the problem.
P.S. Proxmox v8.0.4 and Terraform v1.7.4, Telmate v2.9.11.
The text was updated successfully, but these errors were encountered: