Closed adam-carruthers closed 5 months ago
I have been able to reproduce this using following versions:
I could reproduce the issue with a maven proxy repo also so all proxy repos are potentially affected
Investigating a bit deeper, this issue only happens when the routing rule is manually unassigned to the repo. In the case that another routing rule has been assigned, terraform detect the change and wants to align the repo:
Terraform will perform the following actions:
# nexus_repository_r_proxy.cran_mirror will be updated in-place
~ resource "nexus_repository_r_proxy" "cran_mirror" {
id = "cran-mirror"
name = "cran-mirror"
~ routing_rule = "another_routing" -> "allow_cran"
# (1 unchanged attribute hidden)
# (4 unchanged blocks hidden)
}
@Edu-DevOps fix was released with version 2.3.0
Is there an existing issue for this?
Community Note
Terraform Version
1.6.1
Nexus Provider Version
1.22.0
Nexus Version
3.59.0-01
Affected Resource(s)/Data Source(s)
nexus_repository_r_proxy
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should have noticed the routing rule was changed manually, and added to the plan to change it back.
Actual Behaviour
The plan showed no changes.
Steps to Reproduce
terraform apply
to create the repoterraform plan
References
No response