Closed CSimpiFoN closed 2 years ago
🤔
This is interesting since each of the elements are a TypeList
vs. TypeSet
and thus, these should retain the order when a list.
Reference: https://www.terraform.io/docs/extend/schemas/schema-types.html
@appilon, do you have any thoughts on why the order could be lost in the above?
Ryan
Hi @CSimpiFoN,
I attempted to run a reproduction of this reported issue a testbed today, but I was unable to observe the reported behavior with the same configuration. All tests ran with the expected results - vmnic1
and vmnic4
remained in the same order with every apply.
Terraform v1.1.5
Provider: v2.0.2
vSphere: v7.0.3(c)
Basic example:
resource "vsphere_host_virtual_switch" "switch" {
name = "gh-1503"
host_system_id = data.vsphere_host.host.id
number_of_ports = 42
mtu = 1500
network_adapters = ["vmnic1", "vmnic4"]
active_nics = ["vmnic1", "vmnic4"]
standby_nics = []
teaming_policy = "loadbalance_ip"
allow_promiscuous = false
allow_forged_transmits = false
allow_mac_changes = false
shaping_average_bandwidth = 0
shaping_burst_size = 0
shaping_peak_bandwidth = 0
}
Are you still experiencing this issue?
Ryan Johnson Staff II Solutions Architect | VMware, Inc.
Marking this issue as closed based on the inability to reproduce the issue and no community reactions. 👍🏻 👎🏻
If the issue persists with the latest version of the provider, even using the basic config example above, please open a new issue and reference this issue for additional context. If/when opening a new issue, please provide a copy of the module in a Gist as this would be helpful.
Ryan Johnson Staff II Solutions Architect | VMware, Inc.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
v1.0.3
vSphere Provider Version
v2.0.2
Affected Resource(s)
vsphere_host_virtual_switch
Debug Output
Panic Output
Expected Behavior
Terraform should not see any changes made, as the configuration was done by it in previous run, and was nothing changed since then.
Actual Behavior
Terraform wants to change the order to the actual current settings, then it fails, as it cannot be done
Steps to Reproduce
Important Factoids
References
0000
Community Note