You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause of this problem is that clear(key string) in helper/schema/resource_diff.go is using strings.HasPrefix to delete nested keys but incorrectly finds overlapping plain keys. There is another function in resource_diff.go matching the same way.
The text was updated successfully, but these errors were encountered:
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.
SDK version
Relevant Provider Source Code
Applied to this resource: https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_network_interface.go
This functionality helps resolve issue hashicorp/terraform-provider-aws#9277 in the AWS provider as suggested here hashicorp/terraform-provider-aws#9277 (comment)
Terraform Configuration Files
Debug Output
N/A
Expected Behavior
If
private_ips_count
is changed,private_ips
should be computed.Actual Behavior
If
private_ips_count
is changed,private_ips
is computed butprivate_ips_count
has its pending change deleted.Steps
Reference
The root cause of this problem is that
clear(key string)
inhelper/schema/resource_diff.go
is usingstrings.HasPrefix
to delete nested keys but incorrectly finds overlapping plain keys. There is another function in resource_diff.go matching the same way.The text was updated successfully, but these errors were encountered: