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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
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
resource"nexus_repository_r_proxy""cran_mirror" {
name="cran-mirror"online=truerouting_rule="allow_cran"# after deploying this, change it manually on the Nexus server, the provider won't notice.storage {
blob_store_name="default_s3"strict_content_type_validation=true
}
proxy {
remote_url="http://example.com"content_max_age=5metadata_max_age=5
}
negative_cache {
enabled=false
}
http_client {
blocked=falseauto_block=true
}
}
Debug Output/Panic Output
No debug logs.
If you change the routing rule manually on nexus after deploying the repo, the provider doesn't notice that the routing rule hasn't changed.
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 repo
manually login to Nexus and change the routing rules for the repository to None
terraform plan
References
No response
The text was updated successfully, but these errors were encountered:
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)
}
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
No debug logs. If you change the routing rule manually on nexus after deploying the repo, the provider doesn't notice that the routing rule hasn't changed.
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
The text was updated successfully, but these errors were encountered: