CiscoDevNet / terraform-provider-aci

Terraform Cisco ACI provider
https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs
Mozilla Public License 2.0
84 stars 99 forks source link

[bugfix] Prevent error by setting flood_on_encap and prio for aci_end… #1209

Closed akinross closed 1 month ago

akinross commented 1 month ago

…point_security_group

In https://github.com/CiscoDevNet/terraform-provider-aci/commit/f305774eded80334087acd613c634dda068de9a2 flood_on_encap and prio were removed from schema however in the import/create/update these values were still set.

Which led to the following error:

│ Error: Plugin did not respond │ │ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ImportResourceState call. The plugin │ logs may contain more details. ╵

Stack trace from the terraform-provider-aci plugin:

panic: Invalid address to set: []string{"prio"}

Cleaning up the attributes setting from the functions cleaned up the error.

akinross commented 1 month ago

Should the data source also still have these attributes in the schema?

Officially no, but did not want to create changes to the schema since we will be making those changes anyway soon when we are working on the migrate of the resource. But since @sajagana was also asking the same I will add the change.